I'm not sure if it's an issue of phpcq or the php code sniffer. I often run into the issue that the null coalescing operator ?? is detected as arithmetic operation and so the usage of brackets are forced.
The ternary operator ?: instead isn't detected as arithmetic operation.
I'm not sure if it's an issue of phpcq or the php code sniffer. I often run into the issue that the null coalescing operator
??
is detected as arithmetic operation and so the usage of brackets are forced.The ternary operator
?:
instead isn't detected as arithmetic operation.