Skip to content

Commit 7a3e60a

Browse files
committed
Align PHP compatibility checks with PHP 7.4
Match the PHPCompatibility target to the existing Composer requirement. The PHP 5.6 target incorrectly rejects supported features such as Throwable and void return types.
1 parent 5965c5a commit 7a3e60a

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎phpcs.xml.dist‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
<!-- For help understanding the `testVersion` configuration setting:
4040
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
41-
<config name="testVersion" value="5.6-"/>
41+
<config name="testVersion" value="7.4-"/>
4242

4343
<!-- Verify that everything in the global namespace is either namespaced or prefixed.
4444
See: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#naming-conventions-prefix-everything-in-the-global-namespace -->

‎phpstan/stubs.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound
1010
// phpcs:disable Generic.Files.OneObjectStructurePerFile.MultipleFound
11-
// phpcs:disable PHPCompatibility.FunctionDeclarations.NewReturnTypeDeclarations
12-
// phpcs:disable PHPCompatibility.FunctionDeclarations.NewParamTypeDeclarations
1311

1412
class WP_SQLite_Connection {
1513
/**

0 commit comments

Comments
 (0)