Skip to content

Commit

Permalink
Fix issue identified by Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 7, 2019
1 parent 15bb615 commit 7ed7374
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/Framework/DataProviderTestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ public function setDependencies(array $dependencies): void
$this->dependencies = $dependencies;

foreach ($this->tests as $test) {
if (!$test instanceof TestCase) {
continue;
}

$test->setDependencies($dependencies);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Framework/TestSuite.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TestSuite implements IteratorAggregate, SelfDescribing, Test
/**
* The tests in the test suite.
*
* @var TestCase[]
* @var Test[]
*/
protected $tests = [];

Expand Down

0 comments on commit 7ed7374

Please sign in to comment.