From e062930c41192bb209daec7d307d719140667c98 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Thu, 12 Jun 2025 12:44:26 +0200 Subject: [PATCH] fix: add missing return statement from deprecated 'for()' method (#49) Follow-up PR from #46. Forgot to return from the deprecated method. Reviewed-on: https://codeberg.org/vlw/php-mysql/pulls/49 --- src/MySQL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MySQL.php b/src/MySQL.php index 273d4ea..074df8c 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -81,7 +81,7 @@ since: "3.5.7", )] public function for(string $table): self { - $this->from($table); + return $this->from($table); } // Create a WHERE statement from filters