Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include advanced statement methods in DeleteInterface #178

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

bnf
Copy link

@bnf bnf commented Jan 24, 2023

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

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);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant