More PHP8.4 updates

This commit is contained in:
James Cole
2025-05-04 13:47:00 +02:00
parent e42107c03c
commit 51e86448c7
195 changed files with 524 additions and 715 deletions

View File

@@ -34,15 +34,13 @@ use Illuminate\Contracts\Validation\ValidationRule;
*/
class UniqueIban implements ValidationRule
{
private ?Account $account;
private array $expectedTypes;
/**
* Create a new rule instance.
*/
public function __construct(?Account $account, ?string $expectedType)
public function __construct(private readonly ?Account $account, ?string $expectedType)
{
$this->account = $account;
$this->expectedTypes = [];
if (null === $expectedType) {
return;