8000 minor #16697 CS: remove impossible default argument value (keradus) · symfony/symfony@0cb308f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0cb308f

Browse files
committed
minor #16697 CS: remove impossible default argument value (keradus)
This PR was merged into the 2.7 branch. Discussion ---------- CS: remove impossible default argument value | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | ? | Fixed tickets | N/A | License | MIT | Doc PR | N/A Commits ------- acef3a3 CS: remove impossible default argument value
2 parents 60b02fc + acef3a3 commit 0cb308f

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

src/Symfony/Component/Asset/UrlPackage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ class UrlPackage extends Package
3939
private $sslPackage;
4040

4141
/**
42-
* @param string|array $baseUrls Base asset URLs
42+
* @param string|string[] $baseUrls Base asset URLs
4343
* @param VersionStrategyInterface $versionStrategy The version strategy
44+
* @param ContextInterface|null $context Context
4445
*/
45-
public function __construct($baseUrls = array(), VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
46+
public function __construct($baseUrls, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
4647
{
4748
parent::__construct($versionStrategy, $context);
4849

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ public function getData()
217217
return $this->data;
218218
}
219219

220-
private function recursiveBuildPreliminaryFormTree(FormInterface $form, &$output = null, array &$outputByHash)
220+
private function recursiveBuildPreliminaryFormTree(FormInterface $form, &$output, array &$outputByHash)
221221
{
222222
$hash = spl_object_hash($form);
223223

@@ -236,7 +236,7 @@ private function recursiveBuildPreliminaryFormTree(FormInterface $form, &$output
236236
}
237237
}
238238

239-
private function recursiveBuildFinalFormTree(FormInterface $form = null, FormView $view, &$output = null, array &$outputByHash)
239+
private function recursiveBuildFinalFormTree(FormInterface $form = null, FormView $view, &$output, array &$outputByHash)
240240
{
241241
$viewHash = spl_object_hash($view);
242242
$formHash = null;

src/Symfony/Component/HttpKernel/Tests/Controller/ControllerResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function controllerMethod2($foo, $bar = null)
224224
{
225225
}
226226

227-
protected function controllerMethod3($foo, $bar = null, $foobar)
227+
protected function controllerMethod3($foo, $bar, $foobar)
228228
{
229229
}
230230

src/Symfony/Component/Security/Acl/Domain/Acl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged
5656
* @param array $loadedSids
5757
* @param bool $entriesInheriting
5858
*/
59-
public function __construct($id, ObjectIdentityInterface $objectIdentity, PermissionGrantingStrategyInterface $permissionGrantingStrategy, array $loadedSids = array(), $entriesInheriting)
59+
public function __construct($id, ObjectIdentityInterface $objectIdentity, PermissionGrantingStrategyInterface $permissionGrantingStrategy, array $loadedSids, $entriesInheriting)
6060
{
6161
$this->id = $id;
6262
$this->objectIdentity = $objectIdentity;

src/Symfony/Component/Security/Http/RememberMe/PersistentTokenBasedRememberMeServices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class PersistentTokenBasedRememberMeServices extends AbstractRememberMeServices
4545
* @param LoggerInterface $logger
4646
* @param SecureRandomInterface $secureRandom
4747
*/
48-
public function __construct(array $userProviders, $key, $providerKey, array $options = array(), LoggerInterface $logger = null, SecureRandomInterface $secureRandom)
48+
public function __construct(array $userProviders, $key, $providerKey, array $options, LoggerInterface $logger = null, SecureRandomInterface $secureRandom)
4949
{
5050
parent::__construct($userProviders, $key, $providerKey, $options, $logger);
5151

0 commit comments

Comments
 (0)
0