Skip to content

Commit c1964a7

Browse files
authored
Require WP-CLI v2.13 (#38)
1 parent 270d98c commit c1964a7

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"require": {
15-
"wp-cli/wp-cli": "^2.12"
15+
"wp-cli/wp-cli": "^2.13"
1616
},
1717
"require-dev": {
1818
"wp-cli/wp-cli-tests": "^5"

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@
5151
</properties>
5252
</rule>
5353

54+
<exclude-pattern>/tests/phpstan/scan-files</exclude-pattern>
5455
</ruleset>

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ parameters:
77
- vendor/wp-cli/wp-cli/php
88
scanFiles:
99
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
10+
- tests/phpstan/scan-files.php
1011
treatPhpDocTypesAsCertain: false
1112
ignoreErrors:
1213
- identifier: missingType.parameter
1314
- identifier: missingType.return
15+
dynamicConstantNames:
16+
- ABSPATH

tests/phpstan/scan-files.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
define( 'ABSPATH', '' );
4+
define( 'MINUTE_IN_SECONDS', 60 );

0 commit comments

Comments
 (0)