Skip to content

Commit 4760394

Browse files
authored
Fix build (#6468)
1 parent 4c537c2 commit 4760394

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎tests/PHPStan/Analyser/nsrt/bug-15244.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Bug15244;
3+
namespace Bug15244b;
44

55
use function PHPStan\Testing\assertType;
66

‎tests/PHPStan/Rules/Arrays/data/bug-15244.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php // lint >= 8.1
22

33
namespace Bug15244;
44

‎tests/PHPStan/Rules/DeadCode/UnreachableStatementRuleTest.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ public function testDynamicNameAlwaysTerminating(): void
440440
$this->analyse([__DIR__ . '/data/dynamic-name-always-terminating.php'], [
441441
[
442442
'Unreachable statement - code above always terminates.',
443-
21,
443+
23,
444444
],
445445
[
446446
'Unreachable statement - code above always terminates.',
447-
27,
447+
29,
448448
],
449449
]);
450450
}

‎tests/PHPStan/Rules/DeadCode/data/dynamic-name-always-terminating.php‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types = 1);
1+
<?php // lint >= 8.4
2+
3+
declare(strict_types = 1);
24

35
namespace UnreachableDynamicName;
46

0 commit comments

Comments
 (0)