This PR was submitted for the 4.3 branch but it was squashed and merged into the 3.4 branch instead (closes #32870).
Discussion
----------
| Q | A
| ------------- | ---
| Branch? | 4.3
| Bug fix? | yes
| New feature? | no
| Tests pass? | yes
| Fixed tickets | #32853
| License | MIT
Commits
-------
7cf9ed613b
#32853 Check if $this->parameters is array.
This commit is contained in:
commit
8890be6a96
|
@ -969,7 +969,7 @@ $bagClass
|
|||
*/
|
||||
class $class extends $baseClass
|
||||
{
|
||||
private \$parameters;
|
||||
private \$parameters = [];
|
||||
private \$targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithoutArgumentsContainer
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithMandatoryArgumentsContainer
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithOptionalArgumentsContainer
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\NoConstructorContainer
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Container extends \Symfony\Component\DependencyInjection\Dump\AbstractContainer
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -277,7 +277,7 @@ class ProjectServiceContainer extends Container
|
|||
{
|
||||
private $buildParameters;
|
||||
private $containerDir;
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct(array $buildParameters = [], $containerDir = __DIR__)
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Almost_Circular_Private extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Almost_Circular_Public extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Deep_Graph extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Inline_Self_Ref extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Legacy_Privates extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class ProjectServiceContainer extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Uninitialized_Reference extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||
*/
|
||||
class Symfony_DI_PhpDumper_Test_Unsupported_Characters extends Container
|
||||
{
|
||||
private $parameters;
|
||||
private $parameters = [];
|
||||
private $targetDirs = [];
|
||||
|
||||
public function __construct()
|
||||
|
|
Reference in New Issue