Skip to content

Commit

Permalink
[Core] Typo fix on @param callable on ForeachManipulator and BinaryOp…
Browse files Browse the repository at this point in the history
…Manipulator (#3035)
  • Loading branch information
samsonasik committed Nov 7, 2022
1 parent b7a6427 commit 5aa4248
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/NodeManipulator/BinaryOpManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public function __construct(
* Tries to match left or right parts (xor),
* returns null or match on first condition and then second condition. No matter what the origin order is.
*
* @param callable(Node $firstNode, Node $secondNode=): bool|class-string<Node> $firstCondition
* @param callable(Node $firstNode, Node $secondNode=): bool|class-string<Node> $secondCondition
* @param callable(Node $firstNode, Node $secondNode): bool|class-string<Node> $firstCondition
* @param callable(Node $firstNode, Node $secondNode): bool|class-string<Node> $secondCondition
*/
public function matchFirstAndSecondConditionNode(
BinaryOp $binaryOp,
Expand Down Expand Up @@ -112,7 +112,7 @@ public function inverseNode(Expr $expr): BinaryOp|Expr|BooleanNot
}

/**
* @param callable(Node $firstNode, Node $secondNode=): bool|class-string<Node> $firstCondition
* @param callable(Node $firstNode, Node $secondNode): bool|class-string<Node> $firstCondition
*/
private function validateCondition(callable|string $firstCondition): void
{
Expand All @@ -128,8 +128,8 @@ private function validateCondition(callable|string $firstCondition): void
}

/**
* @param callable(Node $firstNode, Node $secondNode=): bool|class-string<Node> $condition
* @return callable(Node $firstNode, Node $secondNode=): bool
* @param callable(Node $firstNode, Node $secondNode): bool|class-string<Node> $condition
* @return callable(Node $firstNode, Node $secondNode): bool
*/
private function normalizeCondition(callable|string $condition): callable
{
Expand Down
2 changes: 1 addition & 1 deletion src/NodeManipulator/ForeachManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
final class ForeachManipulator
{
/**
* @param callable(Node $node, Foreach_ $foreach=): ?Node $callable
* @param callable(Node $node, Foreach_ $foreach): ?Node $callable
*/
public function matchOnlyStmt(Foreach_ $foreach, callable $callable): ?Node
{
Expand Down

0 comments on commit 5aa4248

Please sign in to comment.