diff --git a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayAppend.php b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayAppend.php index 783a834d..15acdb9b 100644 --- a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayAppend.php +++ b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayAppend.php @@ -18,6 +18,6 @@ protected function customiseFunction(): void { $this->setFunctionPrototype('array_append(%s, %s)'); $this->addNodeMapping('StringPrimary'); - $this->addNodeMapping('Literal'); + $this->addNodeMapping('StringPrimary'); } } diff --git a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayLength.php b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayLength.php index c25fb061..6fc4c6aa 100644 --- a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayLength.php +++ b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayLength.php @@ -18,6 +18,6 @@ protected function customiseFunction(): void { $this->setFunctionPrototype('array_length(%s, %s)'); $this->addNodeMapping('StringPrimary'); - $this->addNodeMapping('Literal'); + $this->addNodeMapping('StringPrimary'); } } diff --git a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayPrepend.php b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayPrepend.php index bc139882..67eda269 100644 --- a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayPrepend.php +++ b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayPrepend.php @@ -17,7 +17,7 @@ class ArrayPrepend extends BaseFunction protected function customiseFunction(): void { $this->setFunctionPrototype('array_prepend(%s, %s)'); - $this->addNodeMapping('Literal'); + $this->addNodeMapping('StringPrimary'); $this->addNodeMapping('StringPrimary'); } } diff --git a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayRemove.php b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayRemove.php index 1985ef33..8e136983 100644 --- a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayRemove.php +++ b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayRemove.php @@ -18,6 +18,6 @@ protected function customiseFunction(): void { $this->setFunctionPrototype('array_remove(%s, %s)'); $this->addNodeMapping('StringPrimary'); - $this->addNodeMapping('Literal'); + $this->addNodeMapping('StringPrimary'); } } diff --git a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayReplace.php b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayReplace.php index 406da127..27a630d7 100644 --- a/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayReplace.php +++ b/src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ArrayReplace.php @@ -18,7 +18,7 @@ protected function customiseFunction(): void { $this->setFunctionPrototype('array_replace(%s, %s, %s)'); $this->addNodeMapping('StringPrimary'); - $this->addNodeMapping('Literal'); - $this->addNodeMapping('Literal'); + $this->addNodeMapping('StringPrimary'); + $this->addNodeMapping('StringPrimary'); } }