Skip to content

Commit fa6c268

Browse files
authored
Merge pull request #76 from wp-cli/chore/bump
2 parents 8e95275 + 161d029 commit fa6c268

6 files changed

Lines changed: 9 additions & 7 deletions

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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,6 @@
5555
<rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound">
5656
<exclude-pattern>*/src/(Role|Capabilities)_Command\.php$</exclude-pattern>
5757
</rule>
58+
59+
<exclude-pattern>/tests/phpstan/scan-files</exclude-pattern>
5860
</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

src/Capabilities_Command.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,6 @@ private static function get_role( $role ) {
228228

229229
/**
230230
* Assert that the roles are persisted to the database.
231-
*
232-
* @throws \WP_CLI\ExitException If the roles are not persisted to the
233-
* database.
234231
*/
235232
private static function persistence_check() {
236233
global $wp_roles;

src/Role_Command.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,6 @@ public function reset( $args, $assoc_args ) {
407407

408408
/**
409409
* Assert that the roles are persisted to the database.
410-
*
411-
* @throws \WP_CLI\ExitException If the roles are not persisted to the
412-
* database.
413410
*/
414411
private static function persistence_check() {
415412
global $wp_roles;

tests/phpstan/scan-files.php

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

0 commit comments

Comments
 (0)