Skip to content

Commit

Permalink
Bugfix: ##any allows a nullable namespace, ##other doesn't
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Sep 3, 2024
1 parent 6756791 commit 0e27f52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ExtendableAttributesTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ function (Attribute $attr) {
),
);
} else {
// All attributes must be namespaced, ergo non-null
Assert::allNotNull($actual_namespaces);

if ($namespace === NS::OTHER) {
// All attributes must be namespaced, ergo non-null
Assert::allNotNull($actual_namespaces);

// Must be any namespace other than the parent element
Assert::allNotSame($actual_namespaces, static::NS);
} elseif ($namespace === NS::TARGET) {
Expand Down

0 comments on commit 0e27f52

Please sign in to comment.