diff --git a/src/danog/Serializable.php b/src/danog/Serializable.php index ce0a3c2..a0d9195 100644 --- a/src/danog/Serializable.php +++ b/src/danog/Serializable.php @@ -33,7 +33,7 @@ trait Serializable } if (method_exists($this, '__magic_construct')) { $this->__magic_construct(...$params); - } else if (method_exists($this, '___construct')) { + } elseif (method_exists($this, '___construct')) { $this->___construct(...$params); } }