Sara, I also favor alphabetical order, but when I was making my example, PhpStorm complained when strict_types came after encoding. Upon further research, it looks like PHP doesn't care about the order of declare() statements, only that they come before other non-declare() statements.
On Monday, December 5, 2016 at 11:55:02 AM UTC-5, Sara Golemon wrote: > > I was initially on the "keep it on the same line" side, largely as that's > how I've been writing it since before 7.0 was released, but the arguments > on this thread have convinced me that as recommended styles go, separate > lines is better. > > The one very minor item I would suggest to add to that recommendation is > that when multiple declare directives are present, they should prefer > alphabetical ordering. e.g. 'encoding' comes before 'strict_types', which > in turn comes before 'ticks'. Similarly with include/use directives. This > may be outside the scope of this discussion though so feel free to ignore > me. :) > -- 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/1bd215cc-e91b-45ec-9d54-d6702b433d30%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
