Skip to content

Commit 86dbdfd

Browse files
committed
Fix build for PHP 7.4
1 parent d8d3775 commit 86dbdfd

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

build/baseline-pre-8.0.neon

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,111 @@ parameters:
55
identifier: function.impossibleType
66
count: 1
77
path: ../src/Type/ClosureTypeFactory.php
8+
9+
-
10+
rawMessage: Asserted type PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum for $this->reflection with type ReflectionClass can never happen.
11+
identifier: assert.impossibleType
12+
count: 1
13+
path: ../src/Reflection/ClassReflection.php
14+
15+
-
16+
rawMessage: 'Call to an undefined method ReflectionClass::getAttributes().'
17+
identifier: method.notFound
18+
count: 3
19+
path: ../src/Reflection/ClassReflection.php
20+
21+
-
22+
rawMessage: 'Call to an undefined method ReflectionClass::isReadOnly().'
23+
identifier: method.notFound
24+
count: 1
25+
path: ../src/Reflection/ClassReflection.php
26+
27+
-
28+
rawMessage: Instanceof between ReflectionClass and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to false.
29+
identifier: instanceof.alwaysFalse
30+
count: 4
31+
path: ../src/Reflection/ClassReflection.php
32+
33+
-
34+
rawMessage: 'Method PHPStan\Reflection\ClassReflection::__construct() has parameter $reflection with generic class ReflectionClass but does not specify its types: T'
35+
identifier: missingType.generics
36+
count: 1
37+
path: ../src/Reflection/ClassReflection.php
38+
39+
-
40+
rawMessage: 'Method PHPStan\Reflection\ClassReflection::findConstructor() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod|null but returns ReflectionMethod.'
41+
identifier: return.type
42+
count: 2
43+
path: ../src/Reflection/ClassReflection.php
44+
45+
-
46+
rawMessage: 'Method PHPStan\Reflection\ClassReflection::getBackedEnumType() never returns PHPStan\Type\Type so it can be removed from the return type.'
47+
identifier: return.unusedType
48+
count: 1
49+
path: ../src/Reflection/ClassReflection.php
50+
51+
-
52+
rawMessage: 'Method PHPStan\Reflection\ClassReflection::getNativeReflection() never returns PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum so it can be removed from the return type.'
53+
identifier: return.unusedType
54+
count: 1
55+
path: ../src/Reflection/ClassReflection.php
56+
57+
-
58+
rawMessage: 'Method PHPStan\Reflection\ClassReflection::getNativeReflection() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum but returns ReflectionClass.'
59+
identifier: return.type
60+
count: 1
61+
path: ../src/Reflection/ClassReflection.php
62+
63+
-
64+
rawMessage: PHPDoc tag @param for parameter $reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
65+
identifier: parameter.phpDocType
66+
count: 1
67+
path: ../src/Reflection/ClassReflection.php
68+
69+
-
70+
rawMessage: PHPDoc tag @var for property PHPStan\Reflection\ClassReflection::$reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
71+
identifier: property.phpDocType
72+
count: 1
73+
path: ../src/Reflection/ClassReflection.php
74+
75+
-
76+
rawMessage: 'Parameter #1 $class of method PHPStan\Reflection\ClassReflection::collectTraits() expects PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum, ReflectionClass given.'
77+
identifier: argument.type
78+
count: 1
79+
path: ../src/Reflection/ClassReflection.php
80+
81+
-
82+
rawMessage: 'Parameter #1 $reflection of method PHPStan\Reflection\Deprecation\DeprecationProvider::getClassDeprecation() expects PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum, ReflectionClass given.'
83+
identifier: argument.type
84+
count: 1
85+
path: ../src/Reflection/ClassReflection.php
86+
87+
-
88+
rawMessage: 'Property PHPStan\Reflection\ClassReflection::$reflection with generic class ReflectionClass does not specify its types: T'
89+
identifier: missingType.generics
90+
count: 1
91+
path: ../src/Reflection/ClassReflection.php
92+
93+
-
94+
rawMessage: Result of && is always false.
95+
identifier: booleanAnd.alwaysFalse
96+
count: 1
97+
path: ../src/Reflection/ClassReflection.php
98+
99+
-
100+
rawMessage: Unreachable statement - code above always terminates.
101+
identifier: deadCode.unreachable
102+
count: 3
103+
path: ../src/Reflection/ClassReflection.php
104+
105+
-
106+
rawMessage: 'Method PHPStan\Reflection\ClassReflectionFactory::create() has parameter $reflection with generic class ReflectionClass but does not specify its types: T'
107+
identifier: missingType.generics
108+
count: 1
109+
path: ../src/Reflection/ClassReflectionFactory.php
110+
111+
-
112+
rawMessage: PHPDoc tag @param for parameter $reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
113+
identifier: parameter.phpDocType
114+
count: 1
115+
path: ../src/Reflection/ClassReflectionFactory.php

0 commit comments

Comments
 (0)