| 1 | <?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
||
| 15 | class CoreCalls { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * A static method to handle the Composer script call that |
||
| 19 | * triggers a repository code scan for WordPress Core function |
||
| 20 | * calls. |
||
| 21 | * |
||
| 22 | * @param Composer\Script\Event $event a script call event. |
||
|
|
|||
| 23 | */ |
||
| 24 | public static function callback( Event $event ) { |
||
| 55 | } |
||
| 56 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.