<?php declare(strict_types=1); namespace Vendor\Package; use Vendor\Package\{ClassA as A, ClassB, ClassC as C}; use Vendor\Package\Namespace\ClassD as D; use function Vendor\Package\{functionA, functionB, functionC}; use const Vendor\Package\{ConstantA, ConstantB, ConstantC}; class Foo extends Bar implements FooInterface {
The same could be said for every clause in PSR-2, Marc.
--
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/9ec2c46f-7d7e-4e98-aba3-1f0db0b3c72b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
+1 on blank line - simply looks cleaner IMHO.Scott
--
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+unsubscribe@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/9a998f0c-9717-4928-bee3-93174c376546%40googlegroups.com.
As with everything in PSR-12, I'm wary of BC-breaks and want to make this a nice upgrade path from PSR-2; that said, this won't hit git commit history of projects too much (it's not modifying lines of code, just adding one) so I'm +1 for picking one.With regards to what to pick, I think that having a consistent rule in that there should be a blank line between every 'block' in the header makes sense, and is a lot easier to handle than working out which blocks have lines above/below off the top of one's head. Therefore, as it's pretty balanced between projects. However, we can wait for the survey to make any final decisions (for this paying particular attention to the 'would you object' question as opposed to the preference/what do you do now question).
--Michael C
On 3 August 2016 at 05:05, 'scott molinari' via PHP Framework Interoperability Group <php...@googlegroups.com> wrote:
+1 on blank line - simply looks cleaner IMHO.Scott
--
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.