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

Fix return type #2

Closed
wants to merge 1 commit into from
Closed

Fix return type #2

wants to merge 1 commit into from

Conversation

@@ -240,7 +240,7 @@ final public function getDecodedContent(): string
/**
* Get raw message content.
*/
final protected function doGetContent(string $partNumber): string
final protected function doGetContent(string $partNumber): ?string
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roy-bongers Dit fixed de return type error, maar is dit geen issue in de imap2 library die null teruggeeft maar eigenlijk bijvoorbeeld false of "" terug moet geven?

Copy link
Member Author

@roy-bongers roy-bongers Feb 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tja, zeg 't maar. Hij komt hier in terecht of in de php-imap (library) imap_fetchbody functie. Die heb ik lokaal echter niet draaien. php.net zegt dat deze string|false returned: https://www.php.net/manual/en/function.imap-fetchbody.php

We zouden achter die twee returns ?? '' kunnen plakken, dan is 't ook gefixt I guess

Screenshot 2023-02-03 at 09 51 57

@roy-bongers roy-bongers closed this Feb 3, 2023
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.

2 participants