From 7516ee6c23fec66f99bfb69c3a1c0203620186f8 Mon Sep 17 00:00:00 2001 From: scroach Date: Mon, 7 Oct 2019 21:06:01 +0200 Subject: [PATCH] Remove type declarations and use old array syntax to support PHP 5.3 --- tests/Argument/Token/ExactValueTokenTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Argument/Token/ExactValueTokenTest.php b/tests/Argument/Token/ExactValueTokenTest.php index 12be30f30..eccda89cc 100644 --- a/tests/Argument/Token/ExactValueTokenTest.php +++ b/tests/Argument/Token/ExactValueTokenTest.php @@ -75,9 +75,9 @@ public function scores_false_for_object_and_null() { class ParentClass { - public $children = []; + public $children = array(); - public function addChild(ChildClass $child) { + public function addChild($child) { $this->children[] = $child; } } @@ -87,7 +87,7 @@ class ChildClass { public $parent = null; public $name = null; - public function __construct(string $name, ParentClass $parent) { + public function __construct($name, $parent) { $this->name = $name; $this->parent = $parent; $this->parent->addChild($this);