diff --git a/src/Query/SqlQuery.php b/src/Query/SqlQuery.php index 87ed8f6..a61c592 100644 --- a/src/Query/SqlQuery.php +++ b/src/Query/SqlQuery.php @@ -115,6 +115,7 @@ public function injectSpecialBindings( continue; } + $replacement = ""; if($type !== "string") { $replacement = $this->escapeSpecialBinding( $bindings[$special], @@ -170,7 +171,7 @@ public function injectDynamicBindings(string $sql, array &$data):string { return trim($sql); } - /** @param array> $data */ + /** @param array>> $data */ private function injectDynamicBindingsValueSet(string $sql, array &$data):string { $pattern = '/\(\s*:__dynamicValueSet\s\)/'; if(!preg_match($pattern, $sql, $matches)) { @@ -234,6 +235,7 @@ private function injectDynamicIn(string $sql, array &$data):string { return str_replace($matches[0], "( $replacementString )", $sql); } + /** @param array>> $data */ private function injectDynamicOr(string $sql, array &$data):string { $pattern = '/:__dynamicOr/'; if(!preg_match($pattern, $sql, $matches)) {