-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Make \OCP\Mail strict #8614
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
Make \OCP\Mail strict #8614
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8614 +/- ##
============================================
+ Coverage 51.93% 51.94% +<.01%
Complexity 25422 25422
============================================
Files 1609 1609
Lines 95343 95343
Branches 1378 1378
============================================
+ Hits 49521 49522 +1
+ Misses 45822 45821 -1
|
lib/private/Mail/Message.php
Outdated
| * @return $this | ||
| */ | ||
| public function setSubject($subject) { | ||
| public function setSubject($subject): IMessage { |
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 guess $subject should always be a string.
lib/private/Mail/EMailTemplate.php
Outdated
| * @since 12.0.0 | ||
| */ | ||
| public function addBodyListItem($text, $metaInfo = '', $icon = '', $plainText = '', $plainMetaInfo = '') { | ||
| public function addBodyListItem(string $text, string $metaInfo = '', string $icon = '', string $plainText = '', string $plainMetaInfo = '') { |
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.
$plain* can also be false here, sorry
lib/public/Mail/IEMailTemplate.php
Outdated
| * @since 12.0.0 | ||
| */ | ||
| public function addBodyListItem($text, $metaInfo = '', $icon = '', $plainText = '', $plainMetaInfo = ''); | ||
| public function addBodyListItem(string $text, string $metaInfo = '', string $icon = '', string $plainText = '', string $plainMetaInfo = ''); |
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.
$plain* can also be false here, sorry
* Fix typehints * Made strict Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
Another round :D |
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl