diff --git a/.gitattributes b/.gitattributes
index e180457..3cd02d7 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -17,8 +17,6 @@ infection.json export-ignore
LICENSE export-ignore
Makefile export-ignore
phpbench.json export-ignore
-phpstan.neon.dist export-ignore
phpunit.xml export-ignore
-psalm-baseline.xml export-ignore
psalm.xml export-ignore
README.md export-ignore
diff --git a/phpstan.neon.dist b/phpstan.neon.dist
deleted file mode 100644
index ec35f6c..0000000
--- a/phpstan.neon.dist
+++ /dev/null
@@ -1,6 +0,0 @@
-parameters:
- ignoreErrors:
- -
- message: "#^Generator expects key type TKey, \\(int\\|string\\) given\\.$#"
- count: 1
- path: src/ConcatIterableAggregate.php
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
deleted file mode 100644
index 5301072..0000000
--- a/psalm-baseline.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- Generator<Generator<TKey, T>, array{0: TKey, 1: T}>
-
-
-
diff --git a/psalm.xml b/psalm.xml
index 9afb7ce..4702b42 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -3,7 +3,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
- errorBaseline="psalm-baseline.xml"
>
diff --git a/src/CachingIteratorAggregate.php b/src/CachingIteratorAggregate.php
index f7a2070..ea091ac 100644
--- a/src/CachingIteratorAggregate.php
+++ b/src/CachingIteratorAggregate.php
@@ -48,10 +48,7 @@ public function __construct(Iterator $iterator)
*/
public function getIterator(): Generator
{
- /** @var array $cache */
- $cache = $this->iterator->getCache();
-
- foreach ($cache as [$key, $current]) {
+ foreach ($this->iterator->getCache() as [$key, $current]) {
yield $key => $current;
}