The current de facto standard is that `declare` statements immediately follow the `<?php` tag:
<?php declare(strict_types=1); namespace Acme; Or when there is no `declare` statement: <?php namespace Acme; This should probably be codified into PSR-12. -- Woody Gilk http://about.me/shadowhand On Fri, Dec 8, 2017 at 9:59 PM, <[email protected]> wrote: > Hi everyone > > I just found that whether there should be one blank line after opening > `<?php` is not clarified now. also examples in current standard are > not consistent. there is some statement about `<?php`, but I think the > number of blank line after that should also be standardized > > current statement: > > When the opening <?php tag is on the first line of the file, it MUST be on > its own line with no other statements unless it is a file containing markup > outside of PHP opening and closing tags. > > > -- > 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/b905d5c7-a3ac-45c3-8d9f-87947d4cfe65%40googlegroups.com > <https://groups.google.com/d/msgid/php-fig/b905d5c7-a3ac-45c3-8d9f-87947d4cfe65%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [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/CAGOJM6%2BqfNGB0Xq%3DTu5%3DRaK%3D0%2BiRmvcAsT0gqQSii42AeQxk-Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
