Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit e68fbb3

Browse files
committed
fix: remove explicit null return types
1 parent 93c5f3d commit e68fbb3

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/Fixer/Naming/ClassNumberFixer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,10 @@ public function supports(SplFileInfo $file): bool
100100

101101
/**
102102
* Get the token representing the name of the class.
103+
*
104+
* @return array|null
103105
*/
104-
protected function findClassNameToken(Tokens $tokens): array|null
106+
protected function findClassNameToken(Tokens $tokens)
105107
{
106108
foreach ($tokens as $index => $token) {
107109
if ($token->isGivenKind(T_CLASS)) {

src/Fixer/Naming/ClassSuffixFixer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ public function supports(SplFileInfo $file): bool
105105

106106
/**
107107
* Get the token representing the name of the class.
108+
*
109+
* @return array|null
108110
*/
109-
protected function findClassNameToken(Tokens $tokens): array|null
111+
protected function findClassNameToken(Tokens $tokens)
110112
{
111113
foreach ($tokens as $index => $token) {
112114
if ($token->isGivenKind(T_CLASS)) {

src/Util/LaravelIdentifier.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ public function __construct(\SplFileInfo $file)
4949

5050
/**
5151
* Identify the Laravel component in the analyzed file.
52+
*
53+
* @return string|null
5254
*/
53-
public static function identify(\SplFileInfo $file): string|null
55+
public static function identify(\SplFileInfo $file)
5456
{
5557
$instance = new static($file);
5658

0 commit comments

Comments
 (0)