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

Bug with SplFileInfo #7

Open
imilyukov opened this issue Mar 30, 2016 · 2 comments
Open

Bug with SplFileInfo #7

imilyukov opened this issue Mar 30, 2016 · 2 comments

Comments

@imilyukov
Copy link

imilyukov commented Mar 30, 2016

Hi!

I use php 5.6+ and take next bug.

if ($file[0] != '/') {

SplFileInfo can not use as array!

Fix should be something like that:
......
if (strpos($file, '/') != 0) {
.....

@YuriyNasretdinov
Copy link
Contributor

Oh. That is a nice bug, thanks. I will look into it a bit later

@mougrim
Copy link
Contributor

mougrim commented Oct 6, 2017

@imilyukov why do you pass SplFileInfo to rewrite method? Is it from some autoloader?
As far as I see this method expects file path as string.
CC: @Sannis

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

No branches or pull requests

3 participants