Skip to content

Commit 5e0a736

Browse files
bug #32870 #32853 Check if $this->parameters is array. (ABGEO07)
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.
2 parents 1019ffc + d6ffe89 commit 5e0a736

38 files changed

+38
-38
lines changed

Dumper/PhpDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ private function startClass($class, $baseClass, $baseClassWithNamespace)
969969
*/
970970
class $class extends $baseClass
971971
{
972-
private \$parameters;
972+
private \$parameters = [];
973973
private \$targetDirs = [];
974974
975975
public function __construct()

Tests/Fixtures/php/custom_container_class_constructor_without_arguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithoutArgumentsContainer
2020
{
21-
private $parameters;
21+
private $parameters = [];
2222
private $targetDirs = [];
2323

2424
public function __construct()

Tests/Fixtures/php/custom_container_class_with_mandatory_constructor_arguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithMandatoryArgumentsContainer
2020
{
21-
private $parameters;
21+
private $parameters = [];
2222
private $targetDirs = [];
2323

2424
public function __construct()

Tests/Fixtures/php/custom_container_class_with_optional_constructor_arguments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\ConstructorWithOptionalArgumentsContainer
2020
{
21-
private $parameters;
21+
private $parameters = [];
2222
private $targetDirs = [];
2323

2424
public function __construct()

Tests/Fixtures/php/custom_container_class_without_constructor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class ProjectServiceContainer extends \Symfony\Component\DependencyInjection\Tests\Fixtures\Container\NoConstructorContainer
2020
{
21-
private $parameters;
21+
private $parameters = [];
2222
private $targetDirs = [];
2323

2424
public function __construct()

Tests/Fixtures/php/services1-1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class Container extends \Symfony\Component\DependencyInjection\Dump\AbstractContainer
2020
{
21-
private $parameters;
21+
private $parameters = [];
2222
private $targetDirs = [];
2323

2424
public function __construct()

Tests/Fixtures/php/services1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class ProjectServiceContainer extends Container
1818
{
19-
private $parameters;
19+
private $parameters = [];
2020
private $targetDirs = [];
2121

2222
public function __construct()

Tests/Fixtures/php/services10.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class ProjectServiceContainer extends Container
1818
{
19-
private $parameters;
19+
private $parameters = [];
2020
private $targetDirs = [];
2121

2222
public function __construct()

Tests/Fixtures/php/services12.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class ProjectServiceContainer extends Container
1818
{
19-
private $parameters;
19+
private $parameters = [];
2020
private $targetDirs = [];
2121

2222
public function __construct()

Tests/Fixtures/php/services13.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717
class ProjectServiceContainer extends Container
1818
{
19-
private $parameters;
19+
private $parameters = [];
2020
private $targetDirs = [];
2121

2222
public function __construct()

0 commit comments

Comments
 (0)