I'm with Rudolph on this one, as I replied in the survey that was sent a
while back. IMO it should be on the first line to make sure it's visible
and not missed because it is such a meaningful line. It completely
changes the way the engine works, it's not php anymore, but strict php,
and you better be aware of it.
As for the fear that more flags will be added, well of course it's
possible but IMO unlikely. In any case we can revisit that topic if
needed when we have more flags, I don't think we need to set the rule of
today based on future unknowns.
Cheers
On 04/12/2016 14:48, Michael Mayer wrote:
I disagree too.
What, if PHP8 will introduce a new execution directive and PHP9 as well
etc. And all of these are considered as good practice.
Where should I put them? All in the same line?
|
<?php
declare(strict_types=1);declare(php8_directive=1);declare(php9_directive=1);
useFoo\Bar\Baz;
classThingextendsBaz
{
}
|
Ewww!
Best regards,
Michael Mayer
--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/07f36815-e178-42ee-b76c-42fa446fbfd9%40googlegroups.com
<https://groups.google.com/d/msgid/php-fig/07f36815-e178-42ee-b76c-42fa446fbfd9%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Jordi Boggiano
@seldaek - http://seld.be
--
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/9f055354-3881-fd6e-6759-8cf09c5ff59d%40seld.be.
For more options, visit https://groups.google.com/d/optout.