Ignace Nyamagana Butera
banner
nyamsprod.com
Ignace Nyamagana Butera
@nyamsprod.com
Software developer. Creator of PHP centric package like league/csv, league/uri and bakame/http-structured-fields. Sponsor me at http://github.com/sponsors/nyamsprod
Also I remember creating this Calendar object with Period based on an article from your team 😀
gist.github.com/nyamsprod/c1...
Create a Calendar in PHP using League Period
Create a Calendar in PHP using League Period. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
November 18, 2025 at 10:57 AM
I did this for the Period package and it works like a charm
github.com/thephpleague...
period/src/Period.php at d1d83adc60e2f82ace9cb8004552cc8a8c1b5947 · thephpleague/period
PHP's time range API. Contribute to thephpleague/period development by creating an account on GitHub.
github.com
November 18, 2025 at 10:55 AM
I hope theses examples explain the goal. To have total control over the functions behaviour.
August 19, 2025 at 8:57 AM
That what does it wraps them
August 18, 2025 at 11:44 PM
`fopen` returns false on error ... so fopen is a code smell is that what you are saying 🤔 and that's the case for most php internal functions. so the solution is for a known behaviour of PHP not for userland code where I do not expect developer to use E_USER_WARNING + false but rather exceptions
August 18, 2025 at 9:44 PM
because the method already return false why would I want to know twice that there's a error ... If the function was returning an Error like a ValueError I would not have to suppress anything. I already know I have false returned it's twice the same information for no real added value.
August 18, 2025 at 8:38 PM
A code smell ? Why ?
August 18, 2025 at 7:06 PM