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

Resolve "Result of method File_IMC_Parse::_convertLineEndings() (void) is used" detected by PHPStan #11

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

matsuo
Copy link
Collaborator

@matsuo matsuo commented Jul 18, 2024

This PR resolves one error detected by PHPStan at level 0, changes the value of @return in File_IMC_Parse::_convertLineEndings() because the return type of the str_replace() is “string|array”.

ref: PHP: str_replace - Manual
https://www.php.net/manual/en/function.str-replace.php

@CloCkWeRX CloCkWeRX merged commit de31ff9 into pear:master Jul 18, 2024
4 checks passed
@matsuo matsuo deleted the resolve-an-error-detected-by-phpstan branch July 18, 2024 23:54
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