From 12a9a65118014b16ca634b97dc9a4150f63ff25f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 24 Jan 2023 14:37:48 +0100 Subject: [PATCH] Include advanced statement methods in DeleteInterface Adapt `DeleteInterface` to match the actual `Delete` implementation which inherits from `AdvancedStatement` to provide methods like `where()`. Otherwise static analysis tools like phpstan will trigger errors when `where()` is used in a delete statement: ``` $db->delete()->from($table)->where($condition); ``` --- src/Statement/DeleteInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Statement/DeleteInterface.php b/src/Statement/DeleteInterface.php index 9cb260a..b375313 100644 --- a/src/Statement/DeleteInterface.php +++ b/src/Statement/DeleteInterface.php @@ -7,9 +7,9 @@ namespace FaaPz\PDO\Statement; -use FaaPz\PDO\StatementInterface; +use FaaPz\PDO\AdvancedStatementInterface; -interface DeleteInterface extends StatementInterface +interface DeleteInterface extends AdvancedStatementInterface { /** * @param string|array $table