1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 17:57:37 +01:00
psalm/docs/running_psalm/issues/InvalidTraversableImplementation.md

11 lines
269 B
Markdown
Raw Normal View History

# InvalidTraversableImplementation
Emitted when class incorrectly implements Traversable. Traversable needs to be
implemented by implementing either `IteratorAggregate` or `Iterator`
```php
<?php
final class C implements Traversable {} // will cause fatal error
```