As a note, Korvin and I have already discussed this and agree its the best way to follow the precedent set by the guidelines for anonymous functions in PSR-2.
--
Thanks,
Michael Cullum
PSR-2 Editor
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CANeXGWXnj3mYqa1viN%3D36bkXogaHLtYjmy%3DzBkqU%2B_%2BUYcFF4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/68f72520-272e-416b-bc1a-828539aa2ccc%40googlegroups.com.
> I'd also like to require the "Class" keyword be capitalized to make it clear that the class is anonymous and not a definition.
Interesting. To me, it would be quite strange to enforce
capitalisation of a language keyword given that, by standard, no one
does capitalises keywords in PHP. Is there a single other keyword we
capitalise by standard?
If anything, the capitalised Class keyword would look much more like a
class name than it would a keyword, making it easier to mistake the
following for instantiation of a named class when quickly grokking
code:
$foo = new Class ...
Whereas, to me, the following clearly looks different to instantiation
of a named class when grokking:
$foo = new class ...
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAKiSzdDRx3fB694nYziKsy2L%2Bwd4_N4%3DVKrsQt8QfD_eRLve%3Dw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAKiSzdCgHc8CnpyyprCvYC%2BGXU%3Dmj0ykeL4gjqYfRwsJ_99k4g%40mail.gmail.com.
I agree. new Something is how I recognize a real class. If anything, lowercase makes it more obvious that it's a language construct, not a real class name.
--Larry Garfield
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/0fb6b6aa-76c0-4848-a027-de54882dc1b2%40email.android.com.
--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/f4accd51-d9c0-46c8-b7f5-5bbbc9dc8961%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/3be9e3f7-43dd-4c67-8692-d44e3e34f654%40googlegroups.com.