Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix RuntimeException with SplFileInfo->isFile() #231
Conversation
Just noticed #137. I'm not sure if this undoes part of what that PR was trying to fix. This one is catching |
Context
With stream_wrapper handling enabled, SplFileInfo->isFile() triggers a RuntimeException for non-existing files.
What has been done
$result = @stat($path);
How to test
VCR::turnOn()
$path = new \SplFileInfo('missingFile');
$path->isFile()