| 1 | <?php |
||
| 10 | final class InflectorServiceProvider extends AbstractServiceProvider implements |
||
| 11 | BootableServiceProviderInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var InflectorConfig |
||
| 15 | */ |
||
| 16 | private $config; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @api |
||
| 20 | * |
||
| 21 | * @param InflectorConfig $config |
||
| 22 | */ |
||
| 23 | public function __construct(InflectorConfig $config) |
||
| 27 | |||
| 28 | public function register() |
||
| 31 | |||
| 32 | public function boot() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $interface |
||
|
|
|||
| 41 | * @param array $config |
||
| 42 | */ |
||
| 43 | private function configureInterface(InflectorDefinition $definition) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param string $interface |
||
| 56 | * @param string $method |
||
| 57 | * @param array $args |
||
| 58 | */ |
||
| 59 | private function addInflectorMethod($interface, $method, array $args) |
||
| 65 | } |
||
| 66 |
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.