I agree, spacing before could be required and spacing inside could be 
forbidden.

Il giorno giovedì 3 gennaio 2019 20:35:00 UTC+1, Georgios Mponos ha scritto:
>
> Elaborating further:
>
>
> case 1: 
>
> if ( (bool) $var === true){
>
> }
>
> // although this might be covered from section about if statements
>
> case 2:
>
> $var =(bool)$var1;
>
> // although this might from other section related with assignment of 
> variable...
>
> case 3:
> ( bool ) $var === true
>
> // I think this is not covered from any section
>
> Τη Παρασκευή, 28 Δεκεμβρίου 2018 - 5:07:21 μ.μ. UTC+2, ο χρήστης Georgios 
> Mponos έγραψε:
>>
>> Hello,
>>
>> I am writing this thread in order to notify you about casting issues that 
>> got into my attention. I think that PSR-12 is not dealing with how the 
>> casting should be styled
>>
>> https://github.com/squizlabs/PHP_CodeSniffer/pull/2331
>>
>> Also one more thing that could be useful is this:
>>
>> https://github.com/doctrine/coding-standard/pull/100
>>
>> I believe that PSR-12 should deal with spaces inside of cast and spaces 
>> before the cast.
>>
>> Regards,
>>
>

-- 
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 php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/687f77fc-9436-4f3b-b5f2-661c98cc4230%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [PSR-12] Cast... Georgios Mponos
    • Re: [PSR... 'Alexander Makarov' via PHP Framework Interoperability Group
    • Re: [PSR... Georgios Mponos
    • Re: [PSR... Georgios Mponos
      • Re: ... Alessandro Lai
        • ... 'Alexander Makarov' via PHP Framework Interoperability Group
          • ... 'Alexander Makarov' via PHP Framework Interoperability Group
    • Re: [PSR... Georgios Mponos
      • Re: ... 'Alexander Makarov' via PHP Framework Interoperability Group
        • ... 'Alexander Makarov' via PHP Framework Interoperability Group

Reply via email to