Skip to content

Commit 019d7dc

Browse files
Horat1ussamdark
authored andcommitted
Update structure-collections.md (#190)
1 parent 7015fce commit 019d7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/structure-collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class PostCollection implements \Countable, \IteratorAggregate
3434
{
3535
foreach ($data as $item) {
3636
if (!$item instanceof Post) {
37-
throw new \InvalidArgumentException('All items should be of Post class.');
37+
throw new \InvalidArgumentException('All items should be instance of Post class.');
3838
}
3939
}
4040
$this->data = $data;

0 commit comments

Comments
 (0)