| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 36 | public function __construct(string $path, \stdClass $definition, array $pathParameters = []) |
||
| 37 | { |
||
| 38 | $this->path = $path; |
||
| 39 | |||
| 40 | foreach (self::$methodNames as $method) { |
||
| 41 | if (isset($definition->$method)) { |
||
| 42 | $this->operations[$method] = $this->createOperation($method, $definition->$method); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | $this->pathParameters = array_merge($pathParameters, RamlOperation::extractParameters($definition)); |
||
|
|
|||
| 47 | } |
||
| 48 | |||
| 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..