Skip to content

fix: correct return type in retrieveCachedContent docblock#1180

Open
zigzagdev wants to merge 1 commit intosmarty-php:masterfrom
zigzagdev:fix/return-php-doc
Open

fix: correct return type in retrieveCachedContent docblock#1180
zigzagdev wants to merge 1 commit intosmarty-php:masterfrom
zigzagdev:fix/return-php-doc

Conversation

@zigzagdev
Copy link
Copy Markdown

Summary

Fix incorrect return type in retrieveCachedContent() docblock.

Closes #1175

Changes

  • @return bool@return string|false

Background

The method returns file_get_contents() on success, which returns string, or false when the file does not exist. The previous @return bool was inaccurate.

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.

Return type inconsistency in retrieveCachedContent(): docblock says string but method may return false

1 participant