Skip to content

Commit 1205b61

Browse files
committed
some cleanup
1 parent 6ccb229 commit 1205b61

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

phpstan.neon.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ parameters:
55
- cron-command.php
66
scanDirectories:
77
- vendor/wp-cli/wp-cli/php
8-
- vendor/wp-cli/wp-cli-tests
98
scanFiles:
109
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
1110
treatPhpDocTypesAsCertain: false
12-
dynamicConstantNames:
13-
- WP_DEBUG
14-
- WP_DEBUG_LOG
15-
- WP_DEBUG_DISPLAY
1611
ignoreErrors:
1712
- identifier: missingType.iterableValue
1813
- identifier: missingType.parameter

src/Cron_Event_Command.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ public function list_( $args, $assoc_args ) {
159159
* # Schedule new cron event and pass arguments
160160
* $ wp cron event schedule cron_test '+1 hour' --0=first-argument --1=second-argument
161161
* Success: Scheduled event with hook 'cron_test' for 2016-05-31 11:21:35 GMT.
162+
*
163+
* @param array{0: string, 1?: string, 2?: string} $args Positional arguments.
164+
* @param array<int, string> $assoc_args Associative arguments.
162165
*/
163166
public function schedule( $args, $assoc_args ) {
164167
if ( count( $assoc_args ) && count( array_filter( array_keys( $assoc_args ), 'is_string' ) ) ) {

0 commit comments

Comments
 (0)