Skip to content

Commit 40ae221

Browse files
committed
Fixed build
1 parent 6313bbb commit 40ae221

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

build/baseline-8.0.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ parameters:
3535
count: 1
3636
path: ../src/Type/Php/StrSplitFunctionReturnTypeExtension.php
3737

38+
-
39+
message: "#^Call to function method_exists\\(\\) with ReflectionProperty and 'isPromoted' will always evaluate to true\\.$#"
40+
paths:
41+
- ../src/Reflection/Php/PhpClassReflectionExtension.php
42+
- ../src/Reflection/Php/PhpPropertyReflection.php

tests/PHPStan/Rules/Properties/DefaultValueTypesAssignedToPropertiesRuleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function testDefaultValueForNativePropertyType(): void
4949

5050
public function testDefaultValueForPromotedProperty(): void
5151
{
52-
if (PHP_VERSION_ID < 80000 && !self::$useStaticReflectionProvider) {
53-
$this->markTestSkipped('Test requires PHP 8.0.');
52+
if (!self::$useStaticReflectionProvider) {
53+
$this->markTestSkipped('Test requires static reflection.');
5454
}
5555

5656
$this->analyse([__DIR__ . '/data/default-value-for-promoted-property.php'], [

tests/PHPStan/Rules/Properties/data/promoted-properties-missing-typehint.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.0
22

33
namespace PromotedPropertiesMissingTypehint;
44

tests/PHPStan/Rules/Properties/data/properties-promoted-types.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.0
22

33
namespace PromotedPropertiesExistingClasses;
44

0 commit comments

Comments
 (0)