diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index cb9a946..cb73b40 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,7 +89,7 @@ jobs: - name: 'Install dependencies' - run: 'composer install --no-progress' + run: 'composer update --no-progress --prefer-stable' - name: 'Run PhpStan' @@ -103,10 +103,6 @@ jobs: strategy: matrix: include: - - - php-version: '8.1' - composer-options: '--prefer-stable' - symfony-version: '6.3' - php-version: '8.2' composer-options: '--prefer-stable' @@ -115,7 +111,12 @@ jobs: - php-version: '8.2' composer-options: '--prefer-stable' - symfony-version: '^7.0' + symfony-version: '^7.4' + + - + php-version: '8.4' + composer-options: '--prefer-stable' + symfony-version: '^8.0' steps: - diff --git a/README.md b/README.md index 97e7681..3cab210 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ and install them for you. ## Requirements -You need at least PHP 7.4, mbstring is recommended but not required. +You need at least PHP 8.0 and Symfony 6.4, mbstring is recommended but not required. ## Usage diff --git a/composer.json b/composer.json index f7aa2a5..8e51725 100644 --- a/composer.json +++ b/composer.json @@ -19,17 +19,17 @@ } ], "require": { - "php": ">=7.4", + "php": ">=8.0", "symfony/polyfill-mbstring": "^1.5.0", - "symfony/validator": "^5.0 || ^6.0 || ^7.0" + "symfony/validator": "^6.4 || ^7.4 || ^8.0" }, "require-dev": { "phpstan/phpstan": "^1.10.39", "phpstan/phpstan-phpunit": "1.3.15", "phpunit/phpunit": "^9.5", "rollerscapes/standards": "^1.0", - "symfony/framework-bundle": "^5.3 || ^6.0 || ^7.0", - "symfony/phpunit-bridge": "^5.3 || ^6.0 || ^7.0" + "symfony/framework-bundle": "^6.4 || ^7.4 || ^8.0", + "symfony/phpunit-bridge": "^6.4 || ^7.4 || ^8.0" }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/src/Constraints/NotInPasswordCommonList.php b/src/Constraints/NotInPasswordCommonList.php index dfc71ae..478d5ff 100644 --- a/src/Constraints/NotInPasswordCommonList.php +++ b/src/Constraints/NotInPasswordCommonList.php @@ -25,7 +25,7 @@ final class NotInPasswordCommonList extends Constraint { public string $message = 'This Password was found among the 1,000,000 most common passwords. Please use another password.'; - public function __construct(string $message = null, $options = null, array $groups = null, $payload = null) + public function __construct(?string $message = null, ?array $options = null, ?array $groups = null, mixed $payload = null) { parent::__construct($options, $groups, $payload); diff --git a/tests/Constraints/NotInPasswordCommonListTest.php b/tests/Constraints/NotInPasswordCommonListTest.php index 7fe3328..80b6aaa 100644 --- a/tests/Constraints/NotInPasswordCommonListTest.php +++ b/tests/Constraints/NotInPasswordCommonListTest.php @@ -96,7 +96,7 @@ public function __toString(): string } /** @return iterable */ - public function provide_unsafe_passwords(): iterable + public static function provide_unsafe_passwords(): iterable { yield ['hunter']; yield ['123qwe123'];