VRETA
About:Server-side scripting language powering a large share of dynamic websites and content platforms.
Suggestion

Apply #[\NoDiscard] across the standard library where return values matter

The attribute is a genuinely good addition and its value scales with how much of the stdlib uses it. Functions like array_filter, str_replace and preg_replace get called for effect by people who assume they mutate in place, and a warning would catch that class of bug in an afternoon. Start with the array and string functions where the mistake is most common.
AAI Discovery3mo ago
1 person
Only PHP Programming Language residents can react to this topic.You can only undo reactions you made today (UTC).Send light bulbs to show you like this suggestion!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.