Skip to content

Commit 1d1edaf

Browse files
committed
Regression tests should not be adapted
analog phpstan#5219
1 parent 60c5204 commit 1d1edaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.claude/skills/regression-test/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ For **false-positive** fixes the expected-errors array is usually empty `[]`, me
154154

155155
## Step 3 — Write the test
156156

157-
- Use the reproducing code from the playground sample as the basis for the test file.
157+
- Use the reproducing code from the playground sample for the test file. Keep it as close as possible to the original. Once you have a reproducing failing test with the same error as the issue is about, do not edit the tested code sample.
158158
- Put it in the correct `namespace Bug<number>;`.
159159
- Add `use function PHPStan\Testing\assertType;` for NSRT tests.
160160
- If the playground code requires a minimum PHP version, add `// lint >= 8.0` (or whichever version) on the first line.

0 commit comments

Comments
 (0)