Skip to content

Commit ae3b4fb

Browse files
authored
Merge pull request #1425 from staabm/csf
Raise min phpcs `php_version` to 8.2
2 parents e376a97 + b33af20 commit ae3b4fb

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

phpcs.xml.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="Roave/BetterReflection coding standard">
3-
<config name="php_version" value="80100"/>
3+
<config name="php_version" value="80200"/>
44
<arg value="p"/>
55
<arg value="s"/>
66
<arg name="colors"/>

src/Reflection/Adapter/ReflectionIntersectionType.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public function __toString(): string
3535
return $this->betterReflectionType->__toString();
3636
}
3737

38-
/** @return false */
39-
public function allowsNull(): bool
38+
public function allowsNull(): false
4039
{
4140
return $this->betterReflectionType->allowsNull();
4241
}

src/Reflection/ReflectionIntersectionType.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public function getTypes(): array
5353
return $this->types;
5454
}
5555

56-
/** @return false */
57-
public function allowsNull(): bool
56+
public function allowsNull(): false
5857
{
5958
return false;
6059
}

test/unit/Reflection/Adapter/ReflectionIntersectionTypeTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function methodExpectationProvider(): array
4343
{
4444
return [
4545
['__toString', null, 'int|string', []],
46-
['allowsNull', null, true, []],
46+
['allowsNull', null, false, []],
4747
['getTypes', null, [], []],
4848
];
4949
}

0 commit comments

Comments
 (0)