diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index ce8bcced1c793..8835d56fb86dd 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -37,6 +37,7 @@ 'header_comment' => ['header' => $fileHeaderComment], 'modernize_strpos' => true, 'get_class_to_class_keyword' => true, + 'nullable_type_declaration' => true, ]) ->setRiskyAllowed(true) ->setFinder( diff --git a/src/Symfony/Component/DependencyInjection/Attribute/Autoconfigure.php b/src/Symfony/Component/DependencyInjection/Attribute/Autoconfigure.php index dec8726ac2087..4560ed696183e 100644 --- a/src/Symfony/Component/DependencyInjection/Attribute/Autoconfigure.php +++ b/src/Symfony/Component/DependencyInjection/Attribute/Autoconfigure.php @@ -29,7 +29,7 @@ public function __construct( public ?bool $autowire = null, public ?array $properties = null, public array|string|null $configurator = null, - public string|null $constructor = null, + public ?string $constructor = null, ) { } } diff --git a/src/Symfony/Component/Dotenv/Command/DotenvDumpCommand.php b/src/Symfony/Component/Dotenv/Command/DotenvDumpCommand.php index 2ca01c531247e..051f4b05a04b3 100644 --- a/src/Symfony/Component/Dotenv/Command/DotenvDumpCommand.php +++ b/src/Symfony/Component/Dotenv/Command/DotenvDumpCommand.php @@ -30,7 +30,7 @@ final class DotenvDumpCommand extends Command { private string $projectDir; - private string|null $defaultEnv; + private ?string $defaultEnv; public function __construct(string $projectDir, string $defaultEnv = null) { diff --git a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php index 828218a452c8c..a7a40779bbac1 100644 --- a/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php +++ b/src/Symfony/Component/Form/Util/OrderedHashMapIterator.php @@ -32,7 +32,7 @@ class OrderedHashMapIterator implements \Iterator private int $cursorId; /** @var array */ private array $managedCursors; - private string|null $key = null; + private ?string $key = null; /** @var TValue|null */ private mixed $current = null; diff --git a/src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php b/src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php index 16bd950096062..728c03e5d8bc8 100644 --- a/src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php +++ b/src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php @@ -19,13 +19,13 @@ class NovuOptions implements MessageOptionsInterface { public function __construct( - private readonly string|null $subscriberId = null, - private readonly string|null $firstName = null, - private readonly string|null $lastName = null, - private readonly string|null $email = null, - private readonly string|null $phone = null, - private readonly string|null $avatar = null, - private readonly string|null $locale = null, + private readonly ?string $subscriberId = null, + private readonly ?string $firstName = null, + private readonly ?string $lastName = null, + private readonly ?string $email = null, + private readonly ?string $phone = null, + private readonly ?string $avatar = null, + private readonly ?string $locale = null, private readonly array $options = [], ) { } diff --git a/src/Symfony/Component/Notifier/Bridge/Novu/NovuSubscriberRecipient.php b/src/Symfony/Component/Notifier/Bridge/Novu/NovuSubscriberRecipient.php index 027c39876e017..d1358145e2dda 100644 --- a/src/Symfony/Component/Notifier/Bridge/Novu/NovuSubscriberRecipient.php +++ b/src/Symfony/Component/Notifier/Bridge/Novu/NovuSubscriberRecipient.php @@ -20,12 +20,12 @@ class NovuSubscriberRecipient implements RecipientInterface { public function __construct( private readonly string $subscriberId, - private readonly string|null $firstName = null, - private readonly string|null $lastName = null, - private readonly string|null $email = null, - private readonly string|null $phone = null, - private readonly string|null $avatar = null, - private readonly string|null $locale = null, + private readonly ?string $firstName = null, + private readonly ?string $lastName = null, + private readonly ?string $email = null, + private readonly ?string $phone = null, + private readonly ?string $avatar = null, + private readonly ?string $locale = null, ) { } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy