Skip to content

Commit db3018b

Browse files
phpstan-botclaude
andcommitted
Use nsrt/bug-9634 in MethodConditionalReturnTypeRuleTest and delete duplicate data file
The rule test now references tests/PHPStan/Analyser/nsrt/bug-9634.php instead of maintaining a separate duplicate in tests/PHPStan/Rules/PhpDoc/data/. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42c3d05 commit db3018b

2 files changed

Lines changed: 6 additions & 23 deletions

File tree

tests/PHPStan/Rules/PhpDoc/MethodConditionalReturnTypeRuleTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,12 @@ public function testBug11939(): void
104104

105105
public function testBug9634(): void
106106
{
107-
$this->analyse([__DIR__ . '/data/bug-9634.php'], []);
107+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-9634.php'], []);
108+
}
109+
110+
public function testBug10938(): void
111+
{
112+
$this->analyse([__DIR__ . '/../../Analyser/nsrt/bug-10938.php'], []);
108113
}
109114

110115
}

tests/PHPStan/Rules/PhpDoc/data/bug-9634.php

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)