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

Ensure link can be read before checking it is a directory (PHPStan Error) #2639

Merged
merged 1 commit into from May 16, 2020

Conversation

davidgrayston
Copy link
Contributor

Fixes PHPStan error affecting checks on open PRs

 ------ ------------------------------------------------------------------------------- 
  Line   Handler/CurlFactory.php                                                        
 ------ ------------------------------------------------------------------------------- 
  366    Parameter #1 $filename of function is_dir expects string, string|false given.  
 ------ ------------------------------------------------------------------------------- 

Happy to close this PR if you'd prefer to ignore the PHPStan error

I'll remove this fix from #2589 if this is merged (or if this error is ignored in a separate PR)

Fixed

  • Ensure link can be read before checking it is a directory

@davidgrayston
Copy link
Contributor Author

Just noticed you closed #2637 in favour of ignoring the error - please confirm (or merge the change to ignore) and I'll close this PR

Copy link
Member

@gmponos gmponos left a comment

Choose a reason for hiding this comment

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

Although I don't like the syntax here.. it seems like a solution for now :)

thank you.

Copy link
Member

@GrahamCampbell GrahamCampbell left a comment

Choose a reason for hiding this comment

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

This PR should target the 6.5 branch.

@gmponos
Copy link
Member

gmponos commented May 15, 2020

This PR should target the 6.5 branch.

IMHO maintaining both branches has huge cost. For now I think we should target to 6.5 what is necessary for the ICU fixes.. for me this is fine targeting master and we can add an ignore in baseline of 6.5 if a PR needs to get going

@gmponos gmponos merged commit 223b0fe into guzzle:master May 16, 2020
@gmponos
Copy link
Member

gmponos commented May 16, 2020

Thank you.

@davidgrayston davidgrayston deleted the check-link-before-read branch May 17, 2020 12:14
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.

None yet

3 participants