Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae0a783

Browse filesBrowse files
Merge branch '6.3' into 6.4
* 6.3: minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2 parents 48f1efb + a44829e commit ae0a783
Copy full SHA for ae0a783

File tree

1,400 files changed

+2307
-2303
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner

1,400 files changed

+2307
-2303
lines changed

‎.git-blame-ignore-revs

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
2+
f4118e110a46de3ffb799e7d79bf15128d1646ea
3+
9519b54417c09c49496a4a6be238e63be9a73465

‎.php-cs-fixer.dist.php

Copy file name to clipboardExpand all lines: .php-cs-fixer.dist.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'remove_inheritdoc' => true,
3535
'allow_unused_params' => true, // for future-ready params, to be replaced with https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/7377
3636
],
37+
'nullable_type_declaration_for_default_null_value' => true,
3738
'header_comment' => ['header' => $fileHeaderComment],
3839
'modernize_strpos' => true,
3940
'get_class_to_class_keyword' => true,

‎src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/CacheWarmer/ProxyCacheWarmer.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function isOptional(): bool
3737
return false;
3838
}
3939

40-
public function warmUp(string $cacheDir, string $buildDir = null): array
40+
public function warmUp(string $cacheDir, ?string $buildDir = null): array
4141
{
4242
$files = [];
4343
foreach ($this->registry->getManagers() as $em) {

‎src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/ContainerAwareEventManager.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(ContainerInterface $container, array $listeners = []
4444
$this->listeners = $listeners;
4545
}
4646

47-
public function dispatchEvent($eventName, EventArgs $eventArgs = null): void
47+
public function dispatchEvent($eventName, ?EventArgs $eventArgs = null): void
4848
{
4949
if (!$this->initializedSubscribers) {
5050
$this->initializeSubscribers();

‎src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function addLogger(string $name, DebugStack $logger)
6666
/**
6767
* @return void
6868
*/
69-
public function collect(Request $request, Response $response, \Throwable $exception = null)
69+
public function collect(Request $request, Response $response, ?\Throwable $exception = null)
7070
{
7171
$this->data = [
7272
'queries' => $this->collectQueries(),

‎src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function setMappingDriverConfig(array $mappingConfig, string $mappingN
141141
*
142142
* Returns false when autodetection failed, an array of the completed information otherwise.
143143
*/
144-
protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \ReflectionClass $bundle, ContainerBuilder $container, string $bundleDir = null): array|false
144+
protected function getMappingDriverBundleConfigDefaults(array $bundleConfig, \ReflectionClass $bundle, ContainerBuilder $container, ?string $bundleDir = null): array|false
145145
{
146146
$bundleClassDir = \dirname($bundle->getFileName());
147147
$bundleDir ??= $bundleClassDir;
@@ -447,7 +447,7 @@ abstract protected function getMappingObjectDefaultName(): string;
447447
/**
448448
* Relative path from the bundle root to the directory where mapping files reside.
449449
*/
450-
abstract protected function getMappingResourceConfigDirectory(string $bundleDir = null): string;
450+
abstract protected function getMappingResourceConfigDirectory(?string $bundleDir = null): string;
451451

452452
/**
453453
* Extension used by the mapping files.

‎src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Form/ChoiceList/IdReader.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function isIntId(): bool
7676
*
7777
* This method assumes that the object has a single-column ID.
7878
*/
79-
public function getIdValue(object $object = null): string
79+
public function getIdValue(?object $object = null): string
8080
{
8181
if (!$object) {
8282
return '';

‎src/Symfony/Bridge/Doctrine/IdGenerator/UuidGenerator.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/IdGenerator/UuidGenerator.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class UuidGenerator extends AbstractIdGenerator
2626
private UuidFactory|NameBasedUuidFactory|RandomBasedUuidFactory|TimeBasedUuidFactory $factory;
2727
private ?string $entityGetter = null;
2828

29-
public function __construct(UuidFactory $factory = null)
29+
public function __construct(?UuidFactory $factory = null)
3030
{
3131
$this->protoFactory = $this->factory = $factory ?? new UuidFactory();
3232
}
@@ -52,7 +52,7 @@ public function generateId(EntityManagerInterface $em, $entity): Uuid
5252
return $this->factory->create();
5353
}
5454

55-
public function nameBased(string $entityGetter, Uuid|string $namespace = null): static
55+
public function nameBased(string $entityGetter, Uuid|string|null $namespace = null): static
5656
{
5757
$clone = clone $this;
5858
$clone->factory = $clone->protoFactory->nameBased($namespace);
@@ -70,7 +70,7 @@ public function randomBased(): static
7070
return $clone;
7171
}
7272

73-
public function timeBased(Uuid|string $node = null): static
73+
public function timeBased(Uuid|string|null $node = null): static
7474
{
7575
$clone = clone $this;
7676
$clone->factory = $clone->protoFactory->timeBased($node);

‎src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Logger/DbalLogger.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ class DbalLogger implements SQLLogger
3030
protected $logger;
3131
protected $stopwatch;
3232

33-
public function __construct(LoggerInterface $logger = null, Stopwatch $stopwatch = null)
33+
public function __construct(?LoggerInterface $logger = null, ?Stopwatch $stopwatch = null)
3434
{
3535
$this->logger = $logger;
3636
$this->stopwatch = $stopwatch;
3737
}
3838

39-
public function startQuery($sql, array $params = null, array $types = null): void
39+
public function startQuery($sql, ?array $params = null, ?array $types = null): void
4040
{
4141
$this->stopwatch?->start('doctrine', 'doctrine');
4242

‎src/Symfony/Bridge/Doctrine/Messenger/AbstractDoctrineMiddleware.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Messenger/AbstractDoctrineMiddleware.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ abstract class AbstractDoctrineMiddleware implements MiddlewareInterface
2828
protected ManagerRegistry $managerRegistry;
2929
protected ?string $entityManagerName;
3030

31-
public function __construct(ManagerRegistry $managerRegistry, string $entityManagerName = null)
31+
public function __construct(ManagerRegistry $managerRegistry, ?string $entityManagerName = null)
3232
{
3333
$this->managerRegistry = $managerRegistry;
3434
$this->entityManagerName = $entityManagerName;

‎src/Symfony/Bridge/Doctrine/Messenger/DoctrineOpenTransactionLoggerMiddleware.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Messenger/DoctrineOpenTransactionLoggerMiddleware.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class DoctrineOpenTransactionLoggerMiddleware extends AbstractDoctrineMiddleware
2828

2929
public function __construct(
3030
ManagerRegistry $managerRegistry,
31-
string $entityManagerName = null,
31+
?string $entityManagerName = null,
3232
private readonly ?LoggerInterface $logger = null,
3333
) {
3434
parent::__construct($managerRegistry, $entityManagerName);

‎src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,12 @@ public function testAlreadyResolved()
388388
$this->assertSame([], $resolver->resolve($request, $argument));
389389
}
390390

391-
private function createArgument(string $class = null, MapEntity $entity = null, string $name = 'arg', bool $isNullable = false): ArgumentMetadata
391+
private function createArgument(?string $class = null, ?MapEntity $entity = null, string $name = 'arg', bool $isNullable = false): ArgumentMetadata
392392
{
393393
return new ArgumentMetadata($name, $class ?? \stdClass::class, false, false, null, $isNullable, $entity ? [$entity] : []);
394394
}
395395

396-
private function createRegistry(ObjectManager $manager = null): ManagerRegistry&MockObject
396+
private function createRegistry(?ObjectManager $manager = null): ManagerRegistry&MockObject
397397
{
398398
$registry = $this->getMockBuilder(ManagerRegistry::class)->getMock();
399399

‎src/Symfony/Bridge/Doctrine/Tests/DoctrineTestHelper.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/DoctrineTestHelper.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class DoctrineTestHelper
3333
/**
3434
* Returns an entity manager for testing.
3535
*/
36-
public static function createTestEntityManager(Configuration $config = null): EntityManager
36+
public static function createTestEntityManager(?Configuration $config = null): EntityManager
3737
{
3838
if (!\extension_loaded('pdo_sqlite')) {
3939
TestCase::markTestSkipped('Extension pdo_sqlite is required.');

‎src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/Form/Type/EntityTypeTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ public function testOverrideChoicesValuesWithCallable()
766766
'em' => 'default',
767767
'class' => self::ITEM_GROUP_CLASS,
768768
'choice_label' => 'name',
769-
'choice_value' => function (GroupableEntity $entity = null) {
769+
'choice_value' => function (?GroupableEntity $entity = null) {
770770
if (null === $entity) {
771771
return '';
772772
}

‎src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/DoctrineExtractorTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testTestGetPropertiesWithEmbedded()
110110
/**
111111
* @dataProvider typesProvider
112112
*/
113-
public function testExtract(string $property, array $type = null)
113+
public function testExtract(string $property, ?array $type = null)
114114
{
115115
$this->assertEquals($type, $this->createExtractor()->getTypes(DoctrineDummy::class, $property, []));
116116
}

‎src/Symfony/Bridge/Doctrine/Tests/Validator/DoctrineLoaderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Tests/Validator/DoctrineLoaderTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function testFieldMappingsConfiguration()
178178
/**
179179
* @dataProvider regexpProvider
180180
*/
181-
public function testClassValidator(bool $expected, string $classValidatorRegexp = null)
181+
public function testClassValidator(bool $expected, ?string $classValidatorRegexp = null)
182182
{
183183
$doctrineLoader = new DoctrineLoader(DoctrineTestHelper::createTestEntityManager(), $classValidatorRegexp, false);
184184

‎src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntity.php
+8-8Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ class UniqueEntity extends Constraint
5050
*/
5151
public function __construct(
5252
$fields,
53-
string $message = null,
54-
string $service = null,
55-
string $em = null,
56-
string $entityClass = null,
57-
string $repositoryMethod = null,
58-
string $errorPath = null,
59-
bool|string|array $ignoreNull = null,
60-
array $groups = null,
53+
?string $message = null,
54+
?string $service = null,
55+
?string $em = null,
56+
?string $entityClass = null,
57+
?string $repositoryMethod = null,
58+
?string $errorPath = null,
59+
bool|string|array|null $ignoreNull = null,
60+
?array $groups = null,
6161
$payload = null,
6262
array $options = []
6363
) {

‎src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Formatter/ConsoleFormatter.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function replacePlaceHolder(array $record): array
185185
return $record;
186186
}
187187

188-
private function dumpData(mixed $data, bool $colors = null): string
188+
private function dumpData(mixed $data, ?bool $colors = null): string
189189
{
190190
if (!isset($this->dumper)) {
191191
return '';

‎src/Symfony/Bridge/Monolog/Formatter/VarDumperFormatter.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Formatter/VarDumperFormatter.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class VarDumperFormatter implements FormatterInterface
2626

2727
private VarCloner $cloner;
2828

29-
public function __construct(VarCloner $cloner = null)
29+
public function __construct(?VarCloner $cloner = null)
3030
{
3131
$this->cloner = $cloner ?? new VarCloner();
3232
}

‎src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Handler/ConsoleHandler.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class ConsoleHandler extends AbstractProcessingHandler implements EventSubscribe
103103
* @param array $verbosityLevelMap Array that maps the OutputInterface verbosity to a minimum logging
104104
* level (leave empty to use the default mapping)
105105
*/
106-
public function __construct(OutputInterface $output = null, bool $bubble = true, array $verbosityLevelMap = [], array $consoleFormatterOptions = [])
106+
public function __construct(?OutputInterface $output = null, bool $bubble = true, array $verbosityLevelMap = [], array $consoleFormatterOptions = [])
107107
{
108108
parent::__construct(Logger::DEBUG, $bubble);
109109
$this->output = $output;

‎src/Symfony/Bridge/Monolog/Handler/ElasticsearchLogstashHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Handler/ElasticsearchLogstashHandler.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ElasticsearchLogstashHandler extends AbstractHandler
6161
*/
6262
private \SplObjectStorage $responses;
6363

64-
public function __construct(string $endpoint = 'http://127.0.0.1:9200', string $index = 'monolog', HttpClientInterface $client = null, string|int|Level $level = Logger::DEBUG, bool $bubble = true, string $elasticsearchVersion = '1.0.0')
64+
public function __construct(string $endpoint = 'http://127.0.0.1:9200', string $index = 'monolog', ?HttpClientInterface $client = null, string|int|Level $level = Logger::DEBUG, bool $bubble = true, string $elasticsearchVersion = '1.0.0')
6565
{
6666
if (!interface_exists(HttpClientInterface::class)) {
6767
throw new \LogicException(sprintf('The "%s" handler needs an HTTP client. Try running "composer require symfony/http-client".', __CLASS__));

‎src/Symfony/Bridge/Monolog/Logger.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Logger.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class Logger extends BaseLogger implements DebugLoggerInterface, ResetInterface
2626
{
27-
public function getLogs(Request $request = null): array
27+
public function getLogs(?Request $request = null): array
2828
{
2929
if ($logger = $this->getDebugLogger()) {
3030
return $logger->getLogs($request);
@@ -33,7 +33,7 @@ public function getLogs(Request $request = null): array
3333
return [];
3434
}
3535

36-
public function countErrors(Request $request = null): int
36+
public function countErrors(?Request $request = null): int
3737
{
3838
if ($logger = $this->getDebugLogger()) {
3939
return $logger->countErrors($request);

‎src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Processor/DebugProcessor.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DebugProcessor implements DebugLoggerInterface, ResetInterface
2626
private array $errorCount = [];
2727
private ?RequestStack $requestStack;
2828

29-
public function __construct(RequestStack $requestStack = null)
29+
public function __construct(?RequestStack $requestStack = null)
3030
{
3131
$this->requestStack = $requestStack;
3232
}
@@ -68,7 +68,7 @@ private function doInvoke(array|LogRecord $record): array|LogRecord
6868
return $record;
6969
}
7070

71-
public function getLogs(Request $request = null): array
71+
public function getLogs(?Request $request = null): array
7272
{
7373
if (null !== $request) {
7474
return $this->records[spl_object_id($request)] ?? [];
@@ -81,7 +81,7 @@ public function getLogs(Request $request = null): array
8181
return array_merge(...array_values($this->records));
8282
}
8383

84-
public function countErrors(Request $request = null): int
84+
public function countErrors(?Request $request = null): int
8585
{
8686
if (null !== $request) {
8787
return $this->errorCount[spl_object_id($request)] ?? 0;

‎src/Symfony/Bridge/Monolog/Processor/WebProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Processor/WebProcessor.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
class WebProcessor extends BaseWebProcessor implements EventSubscriberInterface
2727
{
28-
public function __construct(array $extraFields = null)
28+
public function __construct(?array $extraFields = null)
2929
{
3030
// Pass an empty array as the default null value would access $_SERVER
3131
parent::__construct([], $extraFields);

‎src/Symfony/Bridge/Monolog/Tests/ClassThatInheritLogger.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Tests/ClassThatInheritLogger.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
class ClassThatInheritLogger extends Logger
1818
{
19-
public function getLogs(Request $request = null): array
19+
public function getLogs(?Request $request = null): array
2020
{
2121
return parent::getLogs($request);
2222
}
2323

24-
public function countErrors(Request $request = null): int
24+
public function countErrors(?Request $request = null): int
2525
{
2626
return parent::countErrors($request);
2727
}

‎src/Symfony/Bridge/Monolog/Tests/Processor/ClassThatInheritDebugProcessor.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Monolog/Tests/Processor/ClassThatInheritDebugProcessor.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
class ClassThatInheritDebugProcessor extends DebugProcessor
1818
{
19-
public function getLogs(Request $request = null): array
19+
public function getLogs(?Request $request = null): array
2020
{
2121
return parent::getLogs($request);
2222
}
2323

24-
public function countErrors(Request $request = null): int
24+
public function countErrors(?Request $request = null): int
2525
{
2626
return parent::countErrors($request);
2727
}

‎src/Symfony/Bridge/PhpUnit/CoverageListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PhpUnit/CoverageListener.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CoverageListener implements TestListener
2626
private $sutFqcnResolver;
2727
private $warningOnSutNotFound;
2828

29-
public function __construct(callable $sutFqcnResolver = null, bool $warningOnSutNotFound = false)
29+
public function __construct(?callable $sutFqcnResolver = null, bool $warningOnSutNotFound = false)
3030
{
3131
$this->sutFqcnResolver = $sutFqcnResolver ?? static function (Test $test): ?string {
3232
$class = \get_class($test);

‎src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(string $salt = '')
4141
$this->classGenerator = new BaseGeneratorStrategy();
4242
}
4343

44-
public function isProxyCandidate(Definition $definition, bool &$asGhostObject = null, string $id = null): bool
44+
public function isProxyCandidate(Definition $definition, ?bool &$asGhostObject = null, ?string $id = null): bool
4545
{
4646
$asGhostObject = false;
4747

@@ -76,7 +76,7 @@ static function (&\$wrappedInstance, \ProxyManager\Proxy\LazyLoadingInterface \$
7676
EOF;
7777
}
7878

79-
public function getProxyCode(Definition $definition, string $id = null): string
79+
public function getProxyCode(Definition $definition, ?string $id = null): string
8080
{
8181
$code = $this->classGenerator->generate($this->generateProxyClass($definition));
8282
$code = preg_replace('/^(class [^ ]++ extends )([^\\\\])/', '$1\\\\$2', $code);

‎src/Symfony/Bridge/PsrHttpMessage/EventListener/PsrResponseListener.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PsrHttpMessage/EventListener/PsrResponseListener.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class PsrResponseListener implements EventSubscriberInterface
2828
{
2929
private readonly HttpFoundationFactoryInterface $httpFoundationFactory;
3030

31-
public function __construct(HttpFoundationFactoryInterface $httpFoundationFactory = null)
31+
public function __construct(?HttpFoundationFactoryInterface $httpFoundationFactory = null)
3232
{
3333
$this->httpFoundationFactory = $httpFoundationFactory ?? new HttpFoundationFactory();
3434
}

‎src/Symfony/Bridge/PsrHttpMessage/Factory/PsrHttpFactory.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PsrHttpMessage/Factory/PsrHttpFactory.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ class PsrHttpFactory implements HttpMessageFactoryInterface
4141
private readonly ResponseFactoryInterface $responseFactory;
4242

4343
public function __construct(
44-
ServerRequestFactoryInterface $serverRequestFactory = null,
45-
StreamFactoryInterface $streamFactory = null,
46-
UploadedFileFactoryInterface $uploadedFileFactory = null,
47-
ResponseFactoryInterface $responseFactory = null,
44+
?ServerRequestFactoryInterface $serverRequestFactory = null,
45+
?StreamFactoryInterface $streamFactory = null,
46+
?UploadedFileFactoryInterface $uploadedFileFactory = null,
47+
?ResponseFactoryInterface $responseFactory = null,
4848
) {
4949
if (null === $serverRequestFactory || null === $streamFactory || null === $uploadedFileFactory || null === $responseFactory) {
5050
$psr17Factory = match (true) {

‎src/Symfony/Bridge/PsrHttpMessage/Factory/UploadedFile.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/PsrHttpMessage/Factory/UploadedFile.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
);
4949
}
5050

51-
public function move(string $directory, string $name = null): File
51+
public function move(string $directory, ?string $name = null): File
5252
{
5353
if (!$this->isValid() || $this->test) {
5454
return parent::move($directory, $name);

‎src/Symfony/Bridge/Twig/AppVariable.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/AppVariable.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function getEnabled_locales(): array
176176
* * getFlashes('notice') returns a simple array with flash messages of that type
177177
* * getFlashes(['notice', 'error']) returns a nested array of type => messages.
178178
*/
179-
public function getFlashes(string|array $types = null): array
179+
public function getFlashes(string|array|null $types = null): array
180180
{
181181
try {
182182
if (null === $session = $this->getSession()) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.