Ok great! I'm trying to kick this off, with the help of Alex which offered 
to be the editor. Anyone interested, you can join us on Discord on the 
dedicated #per-coding-style channel: https://discord.gg/x3q64aD5BE

Woody, Ralf, you two in particular, since I couldn't find you there already 
:D

Il giorno sabato 25 dicembre 2021 alle 08:57:54 UTC+1 ralf...@gmail.com ha 
scritto:

> Willing to help but I am not sure yet I understand how a PER works. I am 
> very interested in all the new features 8.1 offers and how one would best 
> render them to legible code that fits in with all the other guidelines. So 
> count me in.
>
> Alessandro Lai <alessand...@gmail.com> schrieb am Mi., 15. Dez. 2021, 
> 15:34:
>
>> Hello and welcome!
>> PSR-12 is unfortunately not up to date with the latest shiny stuff that 
>> we got with PHP 8+. We recently approved the PER workflow, so we could try 
>> to migrate PSR-12 to a PER, and make it easier to update.
>>
>> Anyone willing to help on this?
>>
>> Il giorno mercoledì 15 dicembre 2021 alle 15:32:40 UTC+1 
>> ajn.n...@gmail.com ha scritto:
>>
>>> Hello,
>>>
>>> I wanted to request an exception rule for PSR-12.
>>>
>>> Currently there is this rule:
>>>
>>> > Method and function names MUST NOT be declared with space after the 
>>> method name. The opening brace MUST go on its own line, and the closing 
>>> brace MUST go on the next line following the body.  [...] When the argument 
>>> list is split across multiple lines, the closing parenthesis and opening 
>>> brace MUST be placed together on their own line with one space between them.
>>>  
>>> This means, if you want to use PHP 8 constructor property promotion with 
>>> PSR-12 it looks like this:
>>>
>>> class User { 
>>>   public function __construct( 
>>>           private Service $service 
>>>   ){
>>>   }
>>>  } 
>>>
>>> which I think looks broken. Could we add a rule that opening and closing 
>>> brace can be on the same line when used for constructor and if body is 
>>> empty?
>>>
>>> So it would be ok to look like this:
>>>
>>> class User { 
>>>   public function __construct( 
>>>           private Service $service 
>>>   ){}
>>>  } 
>>>
>>> ?
>>>
>>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/php-fig/3a674fc4-37af-4a1d-af68-f9debccb996an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/php-fig/3a674fc4-37af-4a1d-af68-f9debccb996an%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/e0fed930-e38a-449b-be80-2d80948d4123n%40googlegroups.com.

Reply via email to