@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * @param mixed $root |
| 96 | - * @param string|string[] $path |
|
| 96 | + * @param string[] $path |
|
| 97 | 97 | * @return NodeInterface |
| 98 | 98 | */ |
| 99 | 99 | public function getNode(&$root, $path) |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * @param NodeInterface $root |
| 106 | 106 | * @param string[] $path |
| 107 | - * @return NodeInterface|null |
|
| 107 | + * @return null|Node |
|
| 108 | 108 | */ |
| 109 | 109 | public function findNode(&$root, array $path) |
| 110 | 110 | { |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | { |
| 10 | 10 | /** |
| 11 | 11 | * @param string[] $path |
| 12 | - * @param null $message |
|
| 12 | + * @param string $message |
|
| 13 | 13 | * @param Throwable|null $previous |
| 14 | 14 | */ |
| 15 | 15 | public function __construct(array $path, $message = null, Throwable $previous = null) |
@@ -40,6 +40,9 @@ |
||
| 40 | 40 | return $properties; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @param string $className |
|
| 45 | + */ |
|
| 43 | 46 | private function analyze($className) |
| 44 | 47 | { |
| 45 | 48 | $reflection = new ReflectionClass($className); |
@@ -125,6 +125,9 @@ |
||
| 125 | 125 | } |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | + /** |
|
| 129 | + * @param string $property |
|
| 130 | + */ |
|
| 128 | 131 | private function assertExists($item, $property) |
| 129 | 132 | { |
| 130 | 133 | if (!$this->exists($item, $property)) { |