File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1616use Geocoder \Exception \CollectionIsEmpty ;
1717use Geocoder \Exception \OutOfBounds ;
1818use Geocoder \Location ;
19+ use Traversable ;
1920
2021final class AddressCollection implements Collection
2122{
@@ -35,15 +36,15 @@ public function __construct(array $locations = [])
3536 /**
3637 * {@inheritdoc}
3738 */
38- public function getIterator ()
39+ public function getIterator (): Traversable
3940 {
4041 return new \ArrayIterator ($ this ->all ());
4142 }
4243
4344 /**
4445 * {@inheritdoc}
4546 */
46- public function count ()
47+ public function count (): int
4748 {
4849 return count ($ this ->locations );
4950 }
Original file line number Diff line number Diff line change 1515use Geocoder \Exception \CollectionIsEmpty ;
1616use Geocoder \Exception \InvalidArgument ;
1717use Geocoder \Exception \OutOfBounds ;
18+ use Traversable ;
1819
1920/**
2021 * @author Giorgio Premi <giosh94mhz@gmail.com>
@@ -53,15 +54,15 @@ public function __construct(array $adminLevels = [])
5354 /**
5455 * {@inheritdoc}
5556 */
56- public function getIterator ()
57+ public function getIterator (): Traversable
5758 {
5859 return new \ArrayIterator ($ this ->all ());
5960 }
6061
6162 /**
6263 * {@inheritdoc}
6364 */
64- public function count ()
65+ public function count (): int
6566 {
6667 return count ($ this ->adminLevels );
6768 }
You can’t perform that action at this time.
0 commit comments