Commit 3de9bfe
phpdoc: TermList::getIterator can return an Iterator (#774)
* phpdoc: TermList::getIterator can return an Iterator
Without this type hint we get an IDE error (and probably further static analysis errors) as
SpecialNewLexeme::createSummary calls getIterator and calls current() on the result
which doesn't exist in the current typehint.
This is a 2 part fix, getIterator should document that it can return an Iterator, and also
the createSummary method should probably check that it actually has a Iterator instead
of a just a Traversable.
* Remove Traversable from getIterator phpdoc1 parent 946cc77 commit 3de9bfe
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments