Skip to content

Commit 44d9be8

Browse files
committed
Fix more generic types
Signed-off-by: Alexander M. Turek <[email protected]>
1 parent 6393f2b commit 44d9be8

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

PropertyPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PropertyPath implements \IteratorAggregate, PropertyPathInterface
3232
/**
3333
* The elements of the property path.
3434
*
35-
* @var string[]
35+
* @var list<string>
3636
*/
3737
private $elements = [];
3838

PropertyPathInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getParent();
4949
/**
5050
* Returns the elements of the property path as array.
5151
*
52-
* @return string[]
52+
* @return list<string>
5353
*/
5454
public function getElements();
5555

PropertyPathIterator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* information about the current element.
1717
*
1818
* @author Bernhard Schussek <[email protected]>
19+
*
20+
* @extends \ArrayIterator<int, string>
1921
*/
2022
class PropertyPathIterator extends \ArrayIterator implements PropertyPathIteratorInterface
2123
{

0 commit comments

Comments
 (0)