Skip to content

Commit fb9fa26

Browse files
Fix implicitly-required parameters
1 parent 6fec735 commit fb9fa26

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Functional/Bundle/TestBundle/AutowiringTypes/AutowiredServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AutowiredServices
2121
private $dispatcher;
2222
private $cachePool;
2323

24-
public function __construct(?Reader $annotationReader = null, EventDispatcherInterface $dispatcher, CacheItemPoolInterface $cachePool)
24+
public function __construct(?Reader $annotationReader, EventDispatcherInterface $dispatcher, CacheItemPoolInterface $cachePool)
2525
{
2626
$this->annotationReader = $annotationReader;
2727
$this->dispatcher = $dispatcher;

src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ProfilerController
4040
private $cspHandler;
4141
private $baseDir;
4242

43-
public function __construct(UrlGeneratorInterface $generator, ?Profiler $profiler = null, Environment $twig, array $templates, ?ContentSecurityPolicyHandler $cspHandler = null, ?string $baseDir = null)
43+
public function __construct(UrlGeneratorInterface $generator, ?Profiler $profiler, Environment $twig, array $templates, ?ContentSecurityPolicyHandler $cspHandler = null, ?string $baseDir = null)
4444
{
4545
$this->generator = $generator;
4646
$this->profiler = $profiler;

src/Symfony/Component/Console/Tests/CI/GithubActionReporterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testIsGithubActionEnvironment()
3434
/**
3535
* @dataProvider annotationsFormatProvider
3636
*/
37-
public function testAnnotationsFormat(string $type, string $message, ?string $file = null, ?int $line = null, ?int $col = null, string $expected)
37+
public function testAnnotationsFormat(string $type, string $message, ?string $file, ?int $line, ?int $col, string $expected)
3838
{
3939
$reporter = new GithubActionReporter($buffer = new BufferedOutput());
4040

src/Symfony/Component/Form/Extension/DataCollector/FormDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private function &recursiveBuildPreliminaryFormTree(FormInterface $form, array &
298298
return $output;
299299
}
300300

301-
private function &recursiveBuildFinalFormTree(?FormInterface $form = null, FormView $view, array &$outputByHash)
301+
private function &recursiveBuildFinalFormTree(?FormInterface $form, FormView $view, array &$outputByHash)
302302
{
303303
$viewHash = spl_object_hash($view);
304304
$formHash = null;

src/Symfony/Component/HttpKernel/Fragment/AbstractSurrogateFragmentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ abstract class AbstractSurrogateFragmentRenderer extends RoutableFragmentRendere
3434
*
3535
* @param FragmentRendererInterface $inlineStrategy The inline strategy to use when the surrogate is not supported
3636
*/
37-
public function __construct(?SurrogateInterface $surrogate = null, FragmentRendererInterface $inlineStrategy, ?UriSigner $signer = null)
37+
public function __construct(?SurrogateInterface $surrogate, FragmentRendererInterface $inlineStrategy, ?UriSigner $signer = null)
3838
{
3939
$this->surrogate = $surrogate;
4040
$this->inlineStrategy = $inlineStrategy;

src/Symfony/Component/HttpKernel/Tests/DependencyInjection/RegisterControllerArgumentLocatorsPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ public function fooAction(?NonExistentClass $nonExistent = null)
512512
{
513513
}
514514

515-
public function barAction(?NonExistentClass $nonExistent = null, $bar)
515+
public function barAction(?NonExistentClass $nonExistent, $bar)
516516
{
517517
}
518518
}

src/Symfony/Component/PropertyInfo/Tests/Extractor/PhpDocExtractorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public static function typesProvider()
157157
/**
158158
* @dataProvider provideCollectionTypes
159159
*/
160-
public function testExtractCollection($property, ?array $type = null, $shortDescription, $longDescription)
160+
public function testExtractCollection($property, ?array $type, $shortDescription, $longDescription)
161161
{
162162
if (!class_exists(Collection::class)) {
163163
$this->markTestSkipped('Collections are not implemented in current phpdocumentor/type-resolver version');

src/Symfony/Component/Validator/Context/ExecutionContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public function __construct(ValidatorInterface $validator, $root, TranslatorInte
152152
/**
153153
* {@inheritdoc}
154154
*/
155-
public function setNode($value, ?object $object, ?MetadataInterface $metadata = null, string $propertyPath)
155+
public function setNode($value, ?object $object, ?MetadataInterface $metadata, string $propertyPath)
156156
{
157157
$this->value = $value;
158158
$this->object = $object;

src/Symfony/Component/Validator/Context/ExecutionContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function getObject();
129129
* @param object|null $object The currently validated object
130130
* @param string $propertyPath The property path to the current value
131131
*/
132-
public function setNode($value, ?object $object, ?MetadataInterface $metadata = null, string $propertyPath);
132+
public function setNode($value, ?object $object, ?MetadataInterface $metadata, string $propertyPath);
133133

134134
/**
135135
* Warning: Should not be called by user code, to be used by the validator engine only.

src/Symfony/Component/VarDumper/Tests/Caster/ReflectionCasterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,6 @@ public static function stub(): void
727727
}
728728
}
729729

730-
function reflectionParameterFixture(?NotLoadableClass $arg1 = null, $arg2)
730+
function reflectionParameterFixture(?NotLoadableClass $arg1, $arg2)
731731
{
732732
}

0 commit comments

Comments
 (0)
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