From dbc7ac718db7f37365abe837f8e29a85a8dfa656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Sch=C3=B6ps?= <44115562+SebastianSchoeps@users.noreply.github.com> Date: Tue, 15 Dec 2020 00:45:26 +0100 Subject: [PATCH] Quick fix for PHP8 compatibility Fixes https://php.watch/versions/8.0/deprecate-required-param-after-optional --- src/Cloner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cloner.php b/src/Cloner.php index 333ae54..fa91e16 100644 --- a/src/Cloner.php +++ b/src/Cloner.php @@ -115,7 +115,7 @@ protected function duplicateAttachments($model, $clone) { * @param boolean $child * @return void */ - protected function dispatchOnCloningEvent($clone, $relation = null, $src, $child = null) + protected function dispatchOnCloningEvent($clone, $relation = null, $src = null, $child = null) { // Set the child flag if ($relation) $child = true;