Skip to content

Commit

Permalink
Remove type declarations and use old array syntax to support PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
scroach committed Oct 7, 2019
1 parent e9e0970 commit 7516ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Argument/Token/ExactValueTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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);
Expand Down

0 comments on commit 7516ee6

Please sign in to comment.