Skip to content

Fix phpdoc for ResultFile's getContents function - #65

Merged
laurynas-convertapi merged 1 commit into
ConvertAPI:masterfrom
apple-yagi:fix-phpdoc-get-contents-in-result-file
Nov 1, 2024
Merged

Fix phpdoc for ResultFile's getContents function#65
laurynas-convertapi merged 1 commit into
ConvertAPI:masterfrom
apple-yagi:fix-phpdoc-get-contents-in-result-file

Conversation

@apple-yagi

Copy link
Copy Markdown
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
@laurynas-convertapi

Copy link
Copy Markdown
Contributor

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