Skip to content

Commit

Permalink
Fix issue number in test
Browse files Browse the repository at this point in the history
  • Loading branch information
herndlm authored and ondrejmirtes committed Dec 2, 2022
1 parent 6c0f6eb commit 0f1bfb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/PHPStan/Rules/Variables/DefinedVariableRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -918,13 +918,13 @@ public function testBug4173(): void
]);
}

public function testBug5803(): void
public function testBug5805(): void
{
$this->cliArgumentsVariablesRegistered = true;
$this->polluteScopeWithLoopInitialAssignments = false;
$this->checkMaybeUndefinedVariables = true;
$this->polluteScopeWithAlwaysIterableForeach = true;
$this->analyse([__DIR__ . '/data/bug-5803.php'], []);
$this->analyse([__DIR__ . '/data/bug-5805.php'], []);
}

}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php declare(strict_types = 1);

namespace Bug5803;
namespace Bug5805;

function () {
if (!($_GET['foo'])) { // if 'foo' is falsy, SET $var
Expand Down

0 comments on commit 0f1bfb5

Please sign in to comment.