Skip to content

Commit

Permalink
Merge branch '2.3' into fix-autolink-extension-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell authored Feb 15, 2023
2 parents 0e8eb02 + 7354509 commit 1a21bee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/Extension/Attributes/Util/AttributesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static function parseAttributes(Cursor $cursor): array
continue;
}

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

$first = $value[0];
Expand Down
2 changes: 1 addition & 1 deletion src/Node/Query/AndExpr.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class AndExpr implements ExpressionInterface
*/
public function __construct(callable ...$expressions)
{
$this->conditions = $expressions;
$this->conditions = \array_values($expressions);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Node/Query/OrExpr.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final class OrExpr implements ExpressionInterface
*/
public function __construct(callable ...$expressions)
{
$this->conditions = $expressions;
$this->conditions = \array_values($expressions);
}

/**
Expand Down

0 comments on commit 1a21bee

Please sign in to comment.