mirror of
https://github.com/danog/psalm.git
synced 2025-01-05 20:48:45 +01:00
318 B
318 B
InvalidTraversableImplementation
Emitted when class incorrectly implements Traversable. Traversable needs to be
implemented by implementing either IteratorAggregate
or Iterator
<?php
/**
* @implements Traversable<mixed, mixed>
*/
final class C implements Traversable {} // will cause fatal error