Skip to content

Commit

Permalink
Update Selector.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Aug 23, 2024
1 parent 358508e commit 75a09d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Selector/Selector.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use PHPat\Selector\Modifier\AndModifier;
use PHPat\Selector\Modifier\NotModifier;
use PHPat\Selector\Modifier\XorModifier;

final class Selector extends SelectorPrimitive
{
Expand All @@ -16,4 +17,9 @@ public static function NOT(SelectorInterface $selector): NotModifier
{
return new NotModifier($selector);
}

public static function XOR(SelectorInterface ...$selector): XorModifier
{
return new XorModifier($selector);

Check failure on line 23 in src/Selector/Selector.php

View workflow job for this annotation

GitHub Actions / Static Code and Architecture analysis (7.4, highest)

Parameter #1 ...$selector of class PHPat\Selector\Modifier\XorModifier constructor expects PHPat\Selector\SelectorInterface, array<int, PHPat\Selector\SelectorInterface> given.

Check failure on line 23 in src/Selector/Selector.php

View workflow job for this annotation

GitHub Actions / Static Code and Architecture analysis (8.0, highest)

Parameter #1 ...$selector of class PHPat\Selector\Modifier\XorModifier constructor expects PHPat\Selector\SelectorInterface, array<int|string, PHPat\Selector\SelectorInterface> given.

Check failure on line 23 in src/Selector/Selector.php

View workflow job for this annotation

GitHub Actions / Static Code and Architecture analysis (8.1, highest)

Parameter #1 ...$selector of class PHPat\Selector\Modifier\XorModifier constructor expects PHPat\Selector\SelectorInterface, array<int|string, PHPat\Selector\SelectorInterface> given.

Check failure on line 23 in src/Selector/Selector.php

View workflow job for this annotation

GitHub Actions / Static Code and Architecture analysis (8.2, highest)

Parameter #1 ...$selector of class PHPat\Selector\Modifier\XorModifier constructor expects PHPat\Selector\SelectorInterface, array<int|string, PHPat\Selector\SelectorInterface> given.

Check failure on line 23 in src/Selector/Selector.php

View workflow job for this annotation

GitHub Actions / Static Code and Architecture analysis (8.3, highest)

Parameter #1 ...$selector of class PHPat\Selector\Modifier\XorModifier constructor expects PHPat\Selector\SelectorInterface, array<int|string, PHPat\Selector\SelectorInterface> given.
}
}

0 comments on commit 75a09d3

Please sign in to comment.