| 1 | <?php declare(strict_types = 1); |
||
| 17 | class RamlPath extends Path |
||
| 18 | { |
||
| 19 | private static $methodNames = [ |
||
| 20 | 'get', |
||
| 21 | 'patch', |
||
| 22 | 'put', |
||
| 23 | 'post', |
||
| 24 | 'delete', |
||
| 25 | 'options', |
||
| 26 | 'head' |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Path constructor. |
||
| 31 | * |
||
| 32 | * @param string $path |
||
| 33 | * @param \stdClass $definition |
||
| 34 | * @param array $pathParameters |
||
| 35 | */ |
||
| 36 | public function __construct(string $path, \stdClass $definition, array $pathParameters = []) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $method |
||
| 51 | * @param \stdClass $operationDefinition |
||
| 52 | * |
||
| 53 | * @return Operation |
||
| 54 | */ |
||
| 55 | protected function createOperation(string $method, \stdClass $operationDefinition): Operation |
||
| 64 | } |
||
| 65 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..