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

Update Yasumi::getProviders for platform agnosticism #30

Merged
merged 1 commit into from May 5, 2016

Conversation

navarr
Copy link
Contributor

@navarr navarr commented May 4, 2016

Discovered while running tests on #29, Yasumi::getProviders does not work as expected on Windows!

This commit updates Yasumi::getProviders so that instead of hardcoding the unix-style / it instead listens for whatever PHP specifies as the DIRECTORY_SEPARATOR.

@stelgenhof
Copy link
Member

Super! Was thinking about the same, but didn't have the time yet to test on Windows. My understanding is that DIRECTORY_SEPARATOR is not necessarily needed because PHP always converts / to the appropriate character in its file functions.

@navarr
Copy link
Contributor Author

navarr commented May 4, 2016

This is what getProviders was returning on Windows:

@stelgenhof
Copy link
Member

Hmm. I see...

@stelgenhof
Copy link
Member

I tried on Windows and see also the 'Unix' style separators but didn't have any issues. Do you encounter any problems because of this?

@navarr
Copy link
Contributor Author

navarr commented May 4, 2016

No problems in usage. Only that the test failed because getProviders was returning full filepaths instead of provider names.

@stelgenhof
Copy link
Member

I didn't run the tests. Let me check again.

@stelgenhof stelgenhof merged commit 2b33e62 into azuyalabs:master May 5, 2016
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

2 participants