Skip to content

Commit

Permalink
bug #69 Fixed deprecated messages for PHP8.4+ (bariscodefxy)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.0-dev branch.

Discussion
----------

"Implicitly marking parameter $variable_name as nullable is deprecated" fixed

| Q             | A
| ------------- | ---
| Branch?       | main
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Fixed tickets | Not exists
| License       | MIT

Just fixes a lot of deprecation warnings for PHP version 8.4+

Commits
-------

fbc92a3 Fixed deprecated messages for PHP8.4+
  • Loading branch information
sstok authored Oct 17, 2024
2 parents ab10732 + fbc92a3 commit b02141c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions src/Validator/Constraints/PasswordRequirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ class PasswordRequirements extends Constraint

public function __construct(
mixed $options = null,
array $groups = null,
?array $groups = null,
mixed $payload = null,
int $minLength = null,
bool $requireLetters = null,
bool $requireCaseDiff = null,
bool $requireNumbers = null,
bool $requireSpecialCharacter = null,
string $tooShortMessage = null,
string $missingLettersMessage = null,
string $requireCaseDiffMessage = null,
string $missingNumbersMessage = null,
string $missingSpecialCharacterMessage = null
?int $minLength = null,
?bool $requireLetters = null,
?bool $requireCaseDiff = null,
?bool $requireNumbers = null,
?bool $requireSpecialCharacter = null,
?string $tooShortMessage = null,
?string $missingLettersMessage = null,
?string $requireCaseDiffMessage = null,
?string $missingNumbersMessage = null,
?string $missingSpecialCharacterMessage = null
) {
parent::__construct($options ?? [], $groups, $payload);

Expand Down
12 changes: 6 additions & 6 deletions src/Validator/Constraints/PasswordStrength.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ class PasswordStrength extends Constraint

public function __construct(
mixed $options = null,
array $groups = null,
?array $groups = null,
mixed $payload = null,
int $minStrength = null,
int $minLength = null,
bool $unicodeEquality = null,
string $message = null,
string $tooShortMessage = null
?int $minStrength = null,
?int $minLength = null,
?bool $unicodeEquality = null,
?string $message = null,
?string $tooShortMessage = null
) {
$finalOptions = [];

Expand Down

0 comments on commit b02141c

Please sign in to comment.