Conversation
|
Waaaah... didn't see this one before I created my own version. The big question is : should we target 7.0 or 7.1 ? |
I was thinking about that last night as well. The reason I've chosen the 7.1.x versions is that the function is 100% fine if 7.1.7/9 or higher is the "targetVersion" ( |
|
There are some more cases like this here and there. We may want to take a principle decision (always use lowest/highest PHP version where the function first appeared/was deprecated in last) and verify that the logic is applied consistently throughout the PHPCompatibility sniffs. [Edit]: Oh and add it to the contributors guidelines so it's documented. |
|
I've created a new issue for the "consistency when something is added/removed in multiple versions" question. |
|
And now I know why I didn't pull this before: php/php-src@9379b31#diff-7748eb3bfdd3bf962553f6f9f2723c45 |
Refs: