File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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/extension-command" : " ^1.2 || ^2" ,
Original file line number Diff line number Diff line change 99 * `all_plugins` filter, so that plugins cannot hide themselves from the
1010 * checks.
1111 *
12+ * @extends Base<object{name: string, file: string}>
1213 */
1314class UnfilteredPlugin extends Base {
1415
@@ -22,9 +23,11 @@ class UnfilteredPlugin extends Base {
2223 *
2324 * @param string|int $name
2425 *
25- * @return object|false
26+ * @return object{name: string, file: string} |false
2627 */
2728 public function get ( $ name ) {
29+ $ name = (string ) $ name ;
30+
2831 foreach ( get_plugins () as $ file => $ _ ) {
2932 if ( "{$ name }.php " === $ file ||
3033 ( $ name && $ file === $ name ) ||
You can’t perform that action at this time.
0 commit comments