Skip to content

Commit 8439cfe

Browse files
phpstan-botclaude
authored andcommitted
Move bug-11844 test file to tests/PHPStan/Analyser/nsrt/ directory
The file is auto-discovered in the nsrt/ directory by NodeScopeResolverTest, so the explicit yield was also removed to avoid duplicate key errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b642c04 commit 8439cfe

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

tests/PHPStan/Analyser/NodeScopeResolverTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ private static function findTestFiles(): iterable
263263
yield __DIR__ . '/../Rules/Variables/data/bug-14124.php';
264264
yield __DIR__ . '/../Rules/Variables/data/bug-14124b.php';
265265
yield __DIR__ . '/../Rules/Arrays/data/bug-14308.php';
266-
yield __DIR__ . '/../Rules/TooWideTypehints/data/bug-11844.php';
267266
}
268267

269268
/**
File renamed without changes.

tests/PHPStan/Rules/TooWideTypehints/TooWidePropertyTypeRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function testBug13624(): void
141141
#[RequiresPhp('>= 8.0')]
142142
public function testBug11844(): void
143143
{
144-
$this->analyse([__DIR__ . '/data/bug-11844.php'], []);
144+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-11844.php'], []);
145145
}
146146

147147
}

0 commit comments

Comments
 (0)