Skip to content
Open
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
5 changes: 5 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ parameters:
count: 1
path: src/Validator/Constraints/FloatScale.php

-
message: "#^Method AssoConnect\\\\ValidatorBundle\\\\Validator\\\\Constraints\\\\FrenchRna\\:\\:__construct\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#"
count: 1
path: src/Validator/Constraints/FrenchRna.php

-
message: "#^Public property `message` not marked as readonly\\.$#"
count: 1
Expand Down
11 changes: 11 additions & 0 deletions src/Validator/Constraints/FrenchRna.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,15 @@ class FrenchRna extends Constraint
public const INVALID_FORMAT_ERROR = 'd125c480-3efd-42dd-9a59-6058fddd4fe4';

public string $message = 'The value {{ value }} is not a valid RNA identifier.';

public function __construct(
?array $options = null,
?string $message = null,
?array $groups = null,
mixed $payload = null,
) {
parent::__construct($options, $groups, $payload);

$this->message = $message ?? $this->message;
}
}
Loading