From 695e99d3eebba4b8b8e85c5c8dc96989379ebec8 Mon Sep 17 00:00:00 2001 From: xNatek Date: Mon, 17 May 2021 14:53:48 +0200 Subject: [PATCH 1/2] Update Builder.php Fix mandatory value for array $emittedActAs (PHP 8 compatibility) --- lib/Doctrine/Import/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Import/Builder.php b/lib/Doctrine/Import/Builder.php index 82195340d..edfe420a1 100644 --- a/lib/Doctrine/Import/Builder.php +++ b/lib/Doctrine/Import/Builder.php @@ -923,7 +923,7 @@ public function buildActAs($actAs) * @param array $emittedActAs contains on output an array of actAs command to be appended to output * @return string actAs full definition */ - private function innerBuildActAs($actAs, $level = 0, $parent = null, array &$emittedActAs) + private function innerBuildActAs($actAs, $level = 0, $parent = null, array &$emittedActAs= array()) { // rewrite special case of actAs: [Behavior] which gave [0] => Behavior if (is_array($actAs) && isset($actAs[0]) && !is_array($actAs[0])) { From 0d4a0eb4493dad13809867c6226dae950cbab5c2 Mon Sep 17 00:00:00 2001 From: xNatek Date: Mon, 17 May 2021 15:08:40 +0200 Subject: [PATCH 2/2] Update Builder.php Fix space before assign value --- lib/Doctrine/Import/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Import/Builder.php b/lib/Doctrine/Import/Builder.php index edfe420a1..2ea5fc983 100644 --- a/lib/Doctrine/Import/Builder.php +++ b/lib/Doctrine/Import/Builder.php @@ -923,7 +923,7 @@ public function buildActAs($actAs) * @param array $emittedActAs contains on output an array of actAs command to be appended to output * @return string actAs full definition */ - private function innerBuildActAs($actAs, $level = 0, $parent = null, array &$emittedActAs= array()) + private function innerBuildActAs($actAs, $level = 0, $parent = null, array &$emittedActAs = array()) { // rewrite special case of actAs: [Behavior] which gave [0] => Behavior if (is_array($actAs) && isset($actAs[0]) && !is_array($actAs[0])) {