Skip to content

Conversation

apple-yagi
Copy link
Contributor

Overview

The getContents method of the ResultFile class has a return type specified as string, but the return type of the internally used file_get_contents can be false|string, which means that the getContents method's return type is incorrectly annotated. In fact, there have been instances in the service I am developing where it returned false.

Therefore, I have updated the PHPDoc to match the return type of file_get_contents.

@laurynas-convertapi laurynas-convertapi merged commit 01ebc17 into ConvertAPI:master Nov 1, 2024
0 of 3 checks passed
@laurynas-convertapi
Copy link
Collaborator

Thanks @apple-yagi !

@apple-yagi apple-yagi deleted the fix-phpdoc-get-contents-in-result-file branch November 5, 2024 04:05
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