Skip to content

Commit dc52b88

Browse files
committed
Fix typo. Traversable instead of Traversible.
1 parent 8e8f929 commit dc52b88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MonadPHP/ListMonad.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
class ListMonad extends Monad {
66

77
public function __construct($value) {
8-
if (!is_array($value) && !$value instanceof \Traversible) {
9-
throw new \InvalidArgumentException('Must be traversible');
8+
if (!is_array($value) && !$value instanceof \Traversable) {
9+
throw new \InvalidArgumentException('Must be traversable');
1010
}
1111
return parent::__construct($value);
1212
}

0 commit comments

Comments
 (0)