Browse Source

Fix code example in PHPdoc CollectionInterface

Iandenh 8 years ago
parent
commit
d1806b2446
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Collection/CollectionInterface.php

+ 2 - 2
src/Collection/CollectionInterface.php

@@ -451,8 +451,8 @@ interface CollectionInterface extends Iterator, JsonSerializable
      *
      * ```
      * $items = [
-     *  ['invoice' => ['total' => 100],
-     *  ['invoice' => ['total' => 200]
+     *  ['invoice' => ['total' => 100]],
+     *  ['invoice' => ['total' => 200]]
      * ];
      *
      * $total = (new Collection($items))->sumOf('invoice.total');