for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Cocotte\Finder;
final class CocotteFinder extends \Symfony\Component\Finder\Finder implements Finder
{
public function exactFile(string $realPath): Finder
$search = new \SplFileInfo($realPath);
return $this->in($search->getPath())->filter(
function (\SplFileInfo $found) use ($search) {
return $search->getRealPath() === $found->getRealPath();
}
);