mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3484: [GH-1244] Change $this return type to static in AbstractQuery #4292
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Jan 11, 2015).
Originally assigned to: @Ocramius on GitHub.
Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of BenMorel:
Url: https://github.com/doctrine/doctrine2/pull/1244
Message:
This allows IDEs and static code analysis tools to properly understand the return type when chaining methods, for example when using the QueryBuilder:
In this example, my IDE (PHPStorm) reports:
With a
staticreturn type, the IDE now understands the chaining and knows that$queryis aQuery, not just anAbstractQuery.@doctrinebot commented on GitHub (Jan 11, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1244] was assigned:
https://github.com/doctrine/doctrine2/pull/1244
@doctrinebot commented on GitHub (Jan 11, 2015):
Comment created by @doctrinebot:
A related Github Pull-Request [GH-1244] was merged:
https://github.com/doctrine/doctrine2/pull/1244
@doctrinebot commented on GitHub (Jan 11, 2015):
Issue was closed with resolution "Fixed"