Commit de25798
committed
Remove static from closure to appease a confused PHPCS
FILE: src/wp-includes/script-loader.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
3584 | ERROR | Closures / anonymous functions declared as static do not have
| | access to $this
| | (PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundInStatic)
3586 | ERROR | Closures / anonymous functions declared as static do not have
| | access to $this
| | (PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundInStatic)
--------------------------------------------------------------------------------1 parent fcf196e commit de25798
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3576 | 3576 | | |
3577 | 3577 | | |
3578 | 3578 | | |
3579 | | - | |
| 3579 | + | |
3580 | 3580 | | |
3581 | 3581 | | |
3582 | 3582 | | |
| |||
0 commit comments