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
|
class $class extends $baseClass
|
||||||
{
|
{
|
||||||
private \$parameters;
|
private \$parameters = [];
|
||||||
private \$targetDirs = [];
|
private \$targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithoutArgumentsContainer
|
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithoutArgumentsContainer
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithMandatoryArgumentsContainer
|
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithMandatoryArgumentsContainer
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithOptionalArgumentsContainer
|
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithOptionalArgumentsContainer
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\NoConstructorContainer
|
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\NoConstructorContainer
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -18,7 +18,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Container extends \Symfony\Component\DependencyInjection\Dump\AbstractContainer
|
class Container extends \Symfony\Component\DependencyInjection\Dump\AbstractContainer
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
|
class Symfony_DI_PhpDumper_Test_EnvParameters extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -277,7 +277,7 @@ class ProjectServiceContainer extends Container
|
|||||||
{
|
{
|
||||||
private $buildParameters;
|
private $buildParameters;
|
||||||
private $containerDir;
|
private $containerDir;
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct(array $buildParameters = [], $containerDir = __DIR__)
|
public function __construct(array $buildParameters = [], $containerDir = __DIR__)
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Almost_Circular_Private extends Container
|
class Symfony_DI_PhpDumper_Test_Almost_Circular_Private extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Almost_Circular_Public extends Container
|
class Symfony_DI_PhpDumper_Test_Almost_Circular_Public extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
|
class Symfony_DI_PhpDumper_Test_Base64Parameters extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Deep_Graph extends Container
|
class Symfony_DI_PhpDumper_Test_Deep_Graph extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Inline_Self_Ref extends Container
|
class Symfony_DI_PhpDumper_Test_Inline_Self_Ref extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Legacy_Privates extends Container
|
class Symfony_DI_PhpDumper_Test_Legacy_Privates extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
|
class Symfony_DI_PhpDumper_Test_Rot13Parameters extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class ProjectServiceContainer extends Container
|
class ProjectServiceContainer extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Uninitialized_Reference extends Container
|
class Symfony_DI_PhpDumper_Test_Uninitialized_Reference extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
|
|||||||
*/
|
*/
|
||||||
class Symfony_DI_PhpDumper_Test_Unsupported_Characters extends Container
|
class Symfony_DI_PhpDumper_Test_Unsupported_Characters extends Container
|
||||||
{
|
{
|
||||||
private $parameters;
|
private $parameters = [];
|
||||||
private $targetDirs = [];
|
private $targetDirs = [];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
|
Reference in New Issue
Block a user