Skip to content

Commit d7924c6

Browse files
phpstan-botclaude
andcommitted
Add RequiresPhp >= 8.0.0 to testBug14542 and regenerate baseline
The test uses `mixed` type which requires PHP 8.0+. Baseline regenerated with `make phpstan-generate-baseline` to fix entry ordering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent eb47308 commit d7924c6

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

phpstan-baseline.neon

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ parameters:
1818
count: 1
1919
path: src/Analyser/ArgumentsNormalizer.php
2020

21+
-
22+
rawMessage: Casting to string something that's already string.
23+
identifier: cast.useless
24+
count: 3
25+
path: src/Analyser/ExprHandler/AssignHandler.php
26+
2127
-
2228
rawMessage: 'Doing instanceof PHPStan\Type\Constant\ConstantStringType is error-prone and deprecated. Use Type::getConstantStrings() instead.'
2329
identifier: phpstanApi.instanceofType
@@ -48,12 +54,6 @@ parameters:
4854
count: 1
4955
path: src/Analyser/Ignore/IgnoredErrorHelperResult.php
5056

51-
-
52-
rawMessage: Casting to string something that's already string.
53-
identifier: cast.useless
54-
count: 3
55-
path: src/Analyser/ExprHandler/AssignHandler.php
56-
5757
-
5858
rawMessage: Casting to string something that's already string.
5959
identifier: cast.useless

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,6 +1543,7 @@ public function testBug14501(): void
15431543
$this->assertNoErrors($errors);
15441544
}
15451545

1546+
#[RequiresPhp('>= 8.0.0')]
15461547
public function testBug14542(): void
15471548
{
15481549
$errors = $this->runAnalyse(__DIR__ . '/data/bug-14542.php');

0 commit comments

Comments
 (0)