PHP_Codesniffer running the PHPCompatibility standard produces the following error:
FILE: workflow/workflow.tokens.inc
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
187 | ERROR | Indirect access to variables, properties and methods will be
| | evaluated strictly in left-to-right order since PHP 7.0. Use curly
| | braces to remove ambiguity.
------------------------------------------------------------------------------------
I'm not sure if this is creating any side-effects but I'm going for clean codesniffs so posting a patch here in case others find it useful.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | php7_error_indirect-2918484-2.patch | 673 bytes | jamesrward |
Comments
Comment #2
jamesrward commentedHere's a patch that passes the codesniff.
Comment #4
johnvThanks, committed as is.