Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
azjezz committed May 19, 2021
1 parent d2156d0 commit eec0700
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="unit">
Expand All @@ -21,6 +21,6 @@
</coverage>

<php>
<ini name="error_reporting" value="E_ALL"/>
<ini name="error_reporting" value="E_ALL"/>
</php>
</phpunit>
3 changes: 1 addition & 2 deletions src/Changes.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Countable;
use Generator;
use IteratorAggregate;
use Psl\Dict;
use Psl\Iter;
use Traversable;

Expand Down Expand Up @@ -101,6 +100,6 @@ public function getIterator(): iterable

public function count(): int
{
return Iter\count(Dict\from_iterable($this));
return Iter\count($this->getIterator());
}
}

0 comments on commit eec0700

Please sign in to comment.