-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add remaining missing return types to safe methods #50121
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
Conversation
72e7d7a
to
98fc323
Compare
src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php
Outdated
Show resolved
Hide resolved
978e623
to
1da4528
Compare
1da4528
to
4f80606
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As always, mocks are desynchronized from the real implementation and make use move forward with closed eyes :(
I wish we could stop using them as much as possible, and use e.g. an sqlite DB here.
Thank you @wouterj. |
@@ -71,7 +71,7 @@ private function notify(array $records): void | |||
$this->notifier->send($notification, ...$this->notifier->getAdminRecipients()); | |||
} | |||
|
|||
private function getHighestRecord(array $records) | |||
private function getHighestRecord(array $records): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think return must be : LogRecord|array
for monolog 3+ compatibility
…ity (xabbuh) This PR was merged into the 6.3 branch. Discussion ---------- [MonologBridge] widen return type for Monolog 3 compatibility | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #50121 (comment) | License | MIT | Doc PR | Commits ------- 40a8561 widen return type for Monolog 3 compatibility
This adds return types to remaining methods that are safe to receive a return type (final, internal or private ones), except from methods of
DataCollector
classes (which are missing quite a lot of types). I couldn't figure out whether they all returnData
, the actual value or a union of both, so I've left them out for now.Asides from these, we're missing 121 more return types on "non-safe" methods. If I have time, I'll create some smaller PRs for them to allow easier reviews.
Full list