Skip to content

DX: nullable_type_declaration #52174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 19, 2023
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
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'header_comment' => ['header' => $fileHeaderComment],
'modernize_strpos' => true,
'get_class_to_class_keyword' => true,
'nullable_type_declaration' => true,
])
->setRiskyAllowed(true)
->setFinder(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
}
}
2 changes: 1 addition & 1 deletion src/Symfony/Component/Dotenv/Command/DotenvDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class OrderedHashMapIterator implements \Iterator
private int $cursorId;
/** @var array<int, int> */
private array $managedCursors;
private string|null $key = null;
private ?string $key = null;
/** @var TValue|null */
private mixed $current = null;

Expand Down
14 changes: 7 additions & 7 deletions src/Symfony/Component/Notifier/Bridge/Novu/NovuOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [],
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
) {
}

Expand Down
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