Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:

-
name: 'Install dependencies'
run: 'composer install --no-progress'
run: 'composer update --no-progress --prefer-stable'

-
name: 'Run PhpStan'
Expand All @@ -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'
Expand All @@ -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:
-
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Constraints/NotInPasswordCommonList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion tests/Constraints/NotInPasswordCommonListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function __toString(): string
}

/** @return iterable<int, array{0: string}> */
public function provide_unsafe_passwords(): iterable
public static function provide_unsafe_passwords(): iterable
{
yield ['hunter'];
yield ['123qwe123'];
Expand Down