I have enjoyed reading everyone's viewpoints on this subject. In the end, 
it has reinforced that at least for my personal standard, <?php 
declare(strict_types=1) is best kept on the same line for the following 
reasons:

1. It communicates to me right away that we're playing by new PHP rules in 
this file.

2. In all of my own projects, and in their composer dependencies, I have 
not once seen ticks or encoding declared with the exception of some tests 
in nikic/php-parser.

3. In Jordi's example of real code, the same-line version looks easier for 
me to parse as a reader, gives an extra 2 lines, and allows the DocBlock to 
stand out better.

I'm not a member, so there's not much else that I can do or say beyond my 
initial suggestion. From the responses in this thread, it sounds like 
there's a 50/50 split in opinions despite the unanimous results of the 
survey that Korvin mentioned. I hope you guys get it all figured out!

Cheers,
Michael

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/8bc0a7de-86b1-41af-9137-68c422b11e60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to