Skip to content

Commit 7354509

Browse files
committed
Fix Psalm violations
1 parent 0d523d9 commit 7354509

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Extension/Attributes/Util/AttributesHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public static function parseAttributes(Cursor $cursor): array
7272
continue;
7373
}
7474

75+
/** @psalm-suppress PossiblyUndefinedArrayOffset */
7576
[$name, $value] = \explode('=', $attribute, 2);
7677

7778
$first = $value[0];

src/Node/Query/AndExpr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class AndExpr implements ExpressionInterface
3131
*/
3232
public function __construct(callable ...$expressions)
3333
{
34-
$this->conditions = $expressions;
34+
$this->conditions = \array_values($expressions);
3535
}
3636

3737
/**

src/Node/Query/OrExpr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ final class OrExpr implements ExpressionInterface
3131
*/
3232
public function __construct(callable ...$expressions)
3333
{
34-
$this->conditions = $expressions;
34+
$this->conditions = \array_values($expressions);
3535
}
3636

3737
/**

0 commit comments

Comments
 (0)