mirror of
https://github.com/danog/psalm.git
synced 2024-12-05 13:10:49 +01:00
14 lines
318 B
Markdown
14 lines
318 B
Markdown
# InvalidTraversableImplementation
|
|
|
|
Emitted when class incorrectly implements Traversable. Traversable needs to be
|
|
implemented by implementing either `IteratorAggregate` or `Iterator`
|
|
|
|
```php
|
|
<?php
|
|
|
|
/**
|
|
* @implements Traversable<mixed, mixed>
|
|
*/
|
|
final class C implements Traversable {} // will cause fatal error
|
|
```
|