A subjective post about things that annoy the author in PHP, including issues with constructors, annotations, serialization/deserialization, variadic promoted properties, iterator to array conversion, short closures, statement blocks, functions returning false, and lack of support for inline classes.
Table of contents
Constructors ¶Annotations vs. Attributes ¶No Nested Attributes ¶Serialization/deserailization ¶No Variadic Promoted Properties ¶Iterator to Array: Preserve Keys ¶Iterators vs. Arrays ¶Short closures cannot have statements ¶Statement Blocks in General ¶Functions that return false ¶Inline Classes ¶Conclusion ¶4 Comments
Sort: