Hi, I'm working on the PSR-12 standard for PHP_CodeSniffer. I have a question about this section:
8. Anonymous Classes > Anonymous Classes MUST follow the same guidelines and principles as > closures in the above section. Almost the entire closure section of PSR-12 is dedicated to argument lists (not a bad thing). The only section of it that isn't contains the following text: Closures MUST be declared with a space after the function keyword, and a > space before and after the use keyword. > The opening brace MUST go on the same line, and the closing brace MUST go > on the next line following the body. The first rule doesn't have anything to do with anon classes and the second is superseded by a more specific rule in the anon classes section. So my question is: What guidelines and principals should I take from the closure section when writing rules for anon classes? Thanks -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/82e5e250-e13a-4716-af66-bf4e07d98719%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
