CS: remove impossible default argument value

This commit is contained in:
Dariusz Ruminski 2015-11-26 22:00:12 +01:00
parent 0bd8b58d9b
commit acef3a3b34
5 changed files with 8 additions and 7 deletions

View File

@ -39,10 +39,11 @@ class UrlPackage extends Package
private $sslPackage; private $sslPackage;
/** /**
* @param string|array $baseUrls Base asset URLs * @param string|string[] $baseUrls Base asset URLs
* @param VersionStrategyInterface $versionStrategy The version strategy * @param VersionStrategyInterface $versionStrategy The version strategy
* @param ContextInterface|null $context Context
*/ */
public function __construct($baseUrls = array(), VersionStrategyInterface $versionStrategy, ContextInterface $context = null) public function __construct($baseUrls, VersionStrategyInterface $versionStrategy, ContextInterface $context = null)
{ {
parent::__construct($versionStrategy, $context); parent::__construct($versionStrategy, $context);

View File

@ -217,7 +217,7 @@ class FormDataCollector extends DataCollector implements FormDataCollectorInterf
return $this->data; return $this->data;
} }
private function recursiveBuildPreliminaryFormTree(FormInterface $form, &$output = null, array &$outputByHash) private function recursiveBuildPreliminaryFormTree(FormInterface $form, &$output, array &$outputByHash)
{ {
$hash = spl_object_hash($form); $hash = spl_object_hash($form);
@ -236,7 +236,7 @@ class FormDataCollector extends DataCollector implements FormDataCollectorInterf
} }
} }
private function recursiveBuildFinalFormTree(FormInterface $form = null, FormView $view, &$output = null, array &$outputByHash) private function recursiveBuildFinalFormTree(FormInterface $form = null, FormView $view, &$output, array &$outputByHash)
{ {
$viewHash = spl_object_hash($view); $viewHash = spl_object_hash($view);
$formHash = null; $formHash = null;

View File

@ -224,7 +224,7 @@ class ControllerResolverTest extends \PHPUnit_Framework_TestCase
{ {
} }
protected function controllerMethod3($foo, $bar = null, $foobar) protected function controllerMethod3($foo, $bar, $foobar)
{ {
} }

View File

@ -56,7 +56,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged
* @param array $loadedSids * @param array $loadedSids
* @param bool $entriesInheriting * @param bool $entriesInheriting
*/ */
public function __construct($id, ObjectIdentityInterface $objectIdentity, PermissionGrantingStrategyInterface $permissionGrantingStrategy, array $loadedSids = array(), $entriesInheriting) public function __construct($id, ObjectIdentityInterface $objectIdentity, PermissionGrantingStrategyInterface $permissionGrantingStrategy, array $loadedSids, $entriesInheriting)
{ {
$this->id = $id; $this->id = $id;
$this->objectIdentity = $objectIdentity; $this->objectIdentity = $objectIdentity;

View File

@ -44,7 +44,7 @@ class PersistentTokenBasedRememberMeServices extends AbstractRememberMeServices
* @param LoggerInterface $logger * @param LoggerInterface $logger
* @param SecureRandomInterface $secureRandom * @param SecureRandomInterface $secureRandom
*/ */
public function __construct(array $userProviders, $key, $providerKey, array $options = array(), LoggerInterface $logger = null, SecureRandomInterface $secureRandom) public function __construct(array $userProviders, $key, $providerKey, array $options, LoggerInterface $logger = null, SecureRandomInterface $secureRandom)
{ {
parent::__construct($userProviders, $key, $providerKey, $options, $logger); parent::__construct($userProviders, $key, $providerKey, $options, $logger);