File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -50,4 +50,10 @@ parameters:
50
50
- message : " #^Cannot access property \\ S+ on mixed\\ .$#"
51
51
path : src/Controller.php
52
52
count : 6
53
+ - message : " #^Cannot access property \\ S+ on mixed\\ .$#"
54
+ path : src/CLI.php
55
+ count : 9
56
+ - message : " #^Cannot access property \\ S+ on mixed\\ .$#"
57
+ path : src/Addons.php
58
+ count : 1
53
59
- '/^Parameter # 2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed, \S+ given\.$/'
Original file line number Diff line number Diff line change @@ -66,11 +66,14 @@ public function diagnostics() : void {
66
66
[ 'key ' , 'value ' ]
67
67
);
68
68
69
- $ active_plugins = get_option ( 'active_plugins ' );
69
+ $ active_plugins = ( array ) get_option ( 'active_plugins ' );
70
70
71
71
WP_CLI ::line ( PHP_EOL . 'Active plugins: ' . PHP_EOL );
72
72
73
73
foreach ( $ active_plugins as $ active_plugin ) {
74
+ /**
75
+ * @var string $active_plugin
76
+ */
74
77
WP_CLI ::line ( $ active_plugin );
75
78
}
76
79
You can’t perform that action at this time.
0 commit comments