Skip to content

Commit

Permalink
Merge pull request #1425 from staabm/csf
Browse files Browse the repository at this point in the history
Raise min phpcs `php_version` to 8.2
  • Loading branch information
Ocramius authored Apr 21, 2024
2 parents e376a97 + b33af20 commit ae3b4fb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<ruleset name="Roave/BetterReflection coding standard">
<config name="php_version" value="80100"/>
<config name="php_version" value="80200"/>
<arg value="p"/>
<arg value="s"/>
<arg name="colors"/>
Expand Down
3 changes: 1 addition & 2 deletions src/Reflection/Adapter/ReflectionIntersectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public function __toString(): string
return $this->betterReflectionType->__toString();
}

/** @return false */
public function allowsNull(): bool
public function allowsNull(): false
{
return $this->betterReflectionType->allowsNull();
}
Expand Down
3 changes: 1 addition & 2 deletions src/Reflection/ReflectionIntersectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public function getTypes(): array
return $this->types;
}

/** @return false */
public function allowsNull(): bool
public function allowsNull(): false
{
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function methodExpectationProvider(): array
{
return [
['__toString', null, 'int|string', []],
['allowsNull', null, true, []],
['allowsNull', null, false, []],
['getTypes', null, [], []],
];
}
Expand Down

0 comments on commit ae3b4fb

Please sign in to comment.