| 1 | <?php |
||
| 16 | class JsonSchemaModule extends AbstractModule |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Json-schema json file directory |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $jsonSchemaDir; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Json-schema validator json file directory |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $jsonValidateDir; |
||
| 31 | |||
| 32 | public function __construct($jsonSchemaDir = '', $jsonValidateDir = '', AbstractModule $module = null) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | protected function configure() |
||
| 52 | } |
||
| 53 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.