Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rajyan committed May 12, 2022
1 parent b80b11a commit f2e511b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/PHPStan/Analyser/data/bug-7000.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function doBar(): void
$composer = array();
foreach (array('require', 'require-dev') as $linkType) {
if (isset($composer[$linkType])) {
assertType('array{require?: array<string, string>, require-dev?: array<string, string>}&non-empty-array', $composer);
assertType('array{require?: array<string, string>, require-dev?: array<string, string>}', $composer);
foreach ($composer[$linkType] as $x) {}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,12 @@ public function testBug4885(): void

public function testBug7000(): void
{
$this->analyse([__DIR__ . '/data/bug-7000.php'], []);
$this->analyse([__DIR__ . '/data/bug-7000.php'], [
[
"Offset 'require'|'require-dev' does not exist on array{require?: array<string, string>, require-dev?: array<string, string>}.",
16,
],
]);
}

}

0 comments on commit f2e511b

Please sign in to comment.