Skip to content

Commit

Permalink
Update Builder.php for PHP8 compatibility (#82)
Browse files Browse the repository at this point in the history
Fix mandatory value for array $emittedActAs (PHP 8 compatibility)
  • Loading branch information
xNatek authored Oct 5, 2022
1 parent cf59be0 commit 8926c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Import/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 8926c13

Please sign in to comment.