diff --git a/QueryGenerator.php b/QueryGenerator.php index 9c3abb4..4776866 100644 --- a/QueryGenerator.php +++ b/QueryGenerator.php @@ -250,7 +250,7 @@ public function __construct( * Append the given clause components and parameters to their existing * counterparts for the specified clause. */ - public function &__call($method, $args) { + public function __call($method, $args) { $method = strtolower($method); if (!isset(self::$methods[$method])) { @@ -335,7 +335,7 @@ public function build($skipClauses = false) { /** * Bypass query validation when building. */ - public function &skipValidation() { + public function skipValidation(): self { $this->validateQuery = false; return $this; } @@ -343,7 +343,7 @@ public function &skipValidation() { /** * Use OR when joining where conditions */ - public function &useOr() { + public function useOr(): self { $this->useOr = true; return $this; } diff --git a/psalm-baseline.xml b/psalm-baseline.xml index e3503ca..0d967d5 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -17,8 +17,6 @@ - -