diff --git a/src/Constraints/Concerns/IsChecked.php b/src/Constraints/Concerns/IsChecked.php index dba2d00..4cf376c 100644 --- a/src/Constraints/Concerns/IsChecked.php +++ b/src/Constraints/Concerns/IsChecked.php @@ -2,8 +2,6 @@ namespace Laravel\BrowserKitTesting\Constraints\Concerns; -use Laravel\BrowserKitTesting\Constraints\FormFieldConstraint; - trait IsChecked { /** diff --git a/src/Constraints/Concerns/IsSelected.php b/src/Constraints/Concerns/IsSelected.php index 724d2ed..4d32853 100644 --- a/src/Constraints/Concerns/IsSelected.php +++ b/src/Constraints/Concerns/IsSelected.php @@ -3,7 +3,6 @@ namespace Laravel\BrowserKitTesting\Constraints\Concerns; use DOMElement; -use Laravel\BrowserKitTesting\Constraints\FormFieldConstraint; use Symfony\Component\DomCrawler\Crawler; trait IsSelected diff --git a/src/Constraints/FormFieldConstraint.php b/src/Constraints/FormFieldConstraint.php index ffbd509..6be7fdd 100644 --- a/src/Constraints/FormFieldConstraint.php +++ b/src/Constraints/FormFieldConstraint.php @@ -10,7 +10,7 @@ abstract class FormFieldConstraint extends PageConstraint use Concerns\FormFieldConstraint; } } else { - readonly abstract class FormFieldConstraint extends PageConstraint + abstract readonly class FormFieldConstraint extends PageConstraint { use Concerns\FormFieldConstraint; } diff --git a/src/Constraints/HasElement.php b/src/Constraints/HasElement.php index 89736cd..cf22cdb 100644 --- a/src/Constraints/HasElement.php +++ b/src/Constraints/HasElement.php @@ -2,8 +2,6 @@ namespace Laravel\BrowserKitTesting\Constraints; -use PHPUnit\Framework\Constraint\Constraint; - use PHPUnit\Runner\Version; if (str_starts_with(Version::series(), '10')) { diff --git a/src/Constraints/HasInElement.php b/src/Constraints/HasInElement.php index 1937388..d5f17b2 100644 --- a/src/Constraints/HasInElement.php +++ b/src/Constraints/HasInElement.php @@ -2,8 +2,6 @@ namespace Laravel\BrowserKitTesting\Constraints; -use PHPUnit\Framework\Constraint\Constraint; - use PHPUnit\Runner\Version; if (str_starts_with(Version::series(), '10')) { diff --git a/src/Constraints/HasLink.php b/src/Constraints/HasLink.php index 53184c7..676185e 100644 --- a/src/Constraints/HasLink.php +++ b/src/Constraints/HasLink.php @@ -2,8 +2,6 @@ namespace Laravel\BrowserKitTesting\Constraints; -use PHPUnit\Framework\Constraint\Constraint; - use PHPUnit\Runner\Version; if (str_starts_with(Version::series(), '10')) { diff --git a/src/Constraints/PageConstraint.php b/src/Constraints/PageConstraint.php index 4906d0b..6165969 100644 --- a/src/Constraints/PageConstraint.php +++ b/src/Constraints/PageConstraint.php @@ -3,7 +3,6 @@ namespace Laravel\BrowserKitTesting\Constraints; use PHPUnit\Framework\Constraint\Constraint; - use PHPUnit\Runner\Version; if (str_starts_with(Version::series(), '10')) { @@ -12,7 +11,7 @@ abstract class PageConstraint extends Constraint use Concerns\PageConstraint; } } else { - readonly abstract class PageConstraint extends Constraint + abstract readonly class PageConstraint extends Constraint { use Concerns\PageConstraint; }