Skip to content

Conversation

@joshtrichards
Copy link
Member

Summary

isValidPath() already calls normalizePath() internally.

  • Drops unnecessary extra call to PathHelper::normalizePath() in getFullPath()
  • Switches class to constructor property promotion
  • Updates class docblock

TODO

  • ...

Checklist

isValidPath() already calls normalizePath()

Signed-off-by: Josh <josh.t.richards@gmail.com>
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

But it modifies the $path var which is used in returns of this function

@joshtrichards
Copy link
Member Author

Doh! Obviously. I'm dumb.

@nickvergessen
Copy link
Member

Doh! Obviously.

🙈

I'm dumb.

Wouldn't say that.
Also sorry for closing, the rest would still be valid. But removing this line adds a security related risk :P

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.

3 participants