From 780a721492f1f8e07574366a4f3402b31680a601 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Mon, 10 Jun 2024 06:05:45 +0200 Subject: [PATCH] Fix bug when defaultValue is null --- src/Components/Column.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Column.php b/src/Components/Column.php index 1c1d148..4d5c3a7 100644 --- a/src/Components/Column.php +++ b/src/Components/Column.php @@ -197,7 +197,7 @@ class Column extends Entity $this->setDefaultValueIsLiteral(true); } elseif (is_numeric($defaultValue)) { $this->setDefaultValueIsLiteral(true); - } elseif (false !== stripos($defaultValue, '()')) { + } elseif ($defaultValue != null && false !== stripos($defaultValue, '()')) { $this->setDefaultValueIsLiteral(false); } else { $this->setDefaultValueIsLiteral(true);