Hi.
In PSR-12, spaces are forbidden after the opening parenthesis of a control
structure and before the closing one.
Does this rule apply to any spacing character, including newline?
--
You received this message because you are subscribed to the Google Groups "PHP
Framework Interoperability
Exactly.
PSR-2 and PSR-12 do not explicitly allow such case.
IMO the current rules are subject to interpretation: one could think
newlines are forbidden as well.
I even saw some coding style tools report those as invalid.
Do you think we should update the document to remove any ambiguity?
Le
Sure.
Le lundi 13 mars 2017 20:09:01 UTC+1, Alexander Makarov a écrit :
>
> Yes, why not? Could you pull request with the changes you think are
> appropriate?
>
> On Friday, March 10, 2017 at 5:52:58 PM UTC+3, julien...@gmail.com wrote:
>>
>> Exactly.
>>
>> PSR-2 and PSR-12 do not explicitly
Anyone?
Le mercredi 7 mars 2018 14:21:02 UTC+1, Julien Falque a écrit :
>
> Hi everyone.
>
> About logging exceptions, PSR-3 says:
>
> If an Exception object is passed in the context data, it MUST be in the
>> 'exception' key. Logging exceptions is a common
Anyone?
--
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