Skip to content

Commit 18ab28b

Browse files
committed
Fix Phpstan errros
1 parent a5e1d60 commit 18ab28b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Contract/ContractParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,4 +1079,4 @@ public static function substituteAliases(TypeNode $node, array $aliases): TypeNo
10791079

10801080
return $node;
10811081
}
1082-
}
1082+
}

src/Internal/ContractVisitor.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public function __construct()
2727
/**
2828
* Traverses and transforms AST nodes during entry.
2929
*
30-
* @return array<Node>|int|null
30+
* @return array<Node>|null
3131
*/
32-
public function enterNode(Node $node): array|int|null
32+
public function enterNode(Node $node): ?array
3333
{
3434
if ($node instanceof Node\Stmt\Function_
3535
|| $node instanceof Node\Stmt\ClassMethod
@@ -224,4 +224,4 @@ private function extractDestructuringVariables(Node\Expr\List_|Node\Expr\Array_
224224

225225
return $vars;
226226
}
227-
}
227+
}

src/Internal/Visitor/FunctionContractInjector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,4 +642,4 @@ public function enterNode(Node $n): int|array|null
642642

643643
return $newStmts;
644644
}
645-
}
645+
}

0 commit comments

Comments
 (0)