Hi

Am 2025-10-31 13:16, schrieb Eric Norris:
I hope I'm not starting a bikeshed discussion, but I've been following
along - can I suggest "DoNotSerialize"? "NoSerialize" sounds odd to me,
whereas "DoNotSerialize" can be seen as both an instruction to PHP - "don't serialize this property when serializing the class" - and an instruction to
developers - "do not attempt to serialize this class".

I don't have a particularly strong opinion on naming, but I'd like to note that #[\NoSerialize] is in line with #[\NoDiscard] (added in PHP 8.5, https://wiki.php.net/rfc/marking_return_value_as_important).

Best regards
Tim Düsterhus

Reply via email to