| 1 | <?php |
||
| 11 | class CallbackContainerFactory { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @since 2.0 |
||
| 15 | * |
||
| 16 | * @param CallbackContainer|null $callbackContainer |
||
| 17 | * |
||
| 18 | * @return CallbackContainerBuilder |
||
| 19 | */ |
||
| 20 | 2 | public function newCallbackContainerBuilder( CallbackContainer $callbackContainer = null ) { |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @since 2.0 |
||
| 26 | * |
||
| 27 | * @return NullContainerBuilder |
||
| 28 | */ |
||
| 29 | 1 | public function newNullContainerBuilder() { |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @since 2.0 |
||
| 35 | * |
||
| 36 | * @param ContainerBuilder|null $callbackContainer |
||
|
|
|||
| 37 | * |
||
| 38 | * @return ServicesManager |
||
| 39 | */ |
||
| 40 | 1 | public function newServicesManager( ContainerBuilder $containerBuilder = null ) { |
|
| 48 | |||
| 49 | } |
||
| 50 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.