Hi all,
I'm currently working on implementing PER Coding Style 2.0 for PHP
CodeSniffer, and I'm facing some ambiguity in the specification.
There is a section on method chaining. But what if the first called method
is a static call to a class. It is not outlined if the static call should
be indented or not.
Like this:
MyClass::getInstance()
->foo()
->bar();
Or this:
MyClass
::getInstance()
->foo()
->bar();
This is ambigious in the specification currently since it does not outline
whether a static call is considered 'part of the chain' or not.
Also, hello, my name is Rik and I'm new here. I'm in the PHP 'world' for +-
20y. I might have more questions/suggestions as I'm plowing through it.
Kind regards,
Rik
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/php-fig/4651e1cc-2789-4d78-b602-2fe44895e123n%40googlegroups.com.