PDO icon indicating copy to clipboard operation
PDO copied to clipboard

Include advanced statement methods in DeleteInterface

Open bnf opened this issue 3 years ago • 0 comments

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);

bnf avatar Jan 24 '23 20:01 bnf