You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the ruleset.xml enforces compatibility with PHP 5.6.
However, Divi itself now requires PHP 7.4 (no recommendation, but requirement)
Also, Divi 4 makes good use of PHP 7 syntax throughout its codebase (sample: File "ChunkImagesTrait.php" uses type-hints for string, int, array)
Requested Change
Update the ruleset.xml to <config name="testVersion" value="7.0-"/> so we can use a few more modern syntax elements in our code.
Currently, the ruleset.xml enforces compatibility with PHP 5.6.
However, Divi itself now requires PHP 7.4 (no recommendation, but requirement)
Also, Divi 4 makes good use of PHP 7 syntax throughout its codebase (sample: File "ChunkImagesTrait.php" uses type-hints for string, int, array)
Requested Change
Update the ruleset.xml to
<config name="testVersion" value="7.0-"/>
so we can use a few more modern syntax elements in our code.Current code:
marketplace-phpcs/ruleset.xml
Line 8 in 154f622
Related links
Attached PR
The text was updated successfully, but these errors were encountered: