Skip to content
Snippets Groups Projects
Commit 05aeb252 authored by Daniel Hürtgen's avatar Daniel Hürtgen
Browse files

TASK: Use native \SplFileInfo instead of Symfony one

parent 37f87282
Branches
2 merge requests!37Release 0.4.0,!32Implement PHPCodeSniffer Standards Finder Service
......@@ -25,7 +25,6 @@ use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards\Standards;
use Higidi\ComposerPhpCSStandardsPlugin\PHPCodeSniffer\Standards\Factory;
use Higidi\ComposerPhpCSStandardsPlugin\Symfony\Finder\Factory as FinderFactory;
use Symfony\Component\Finder\Finder as SymfonyFinder;
use Symfony\Component\Finder\SplFileInfo;
/**
* Standards finder class.
......@@ -67,7 +66,7 @@ class Finder
->sortByName();
$paths = iterator_to_array($finder, false);
$paths = array_map(
function (SplFileInfo $file) {
function (\SplFileInfo $file) {
return $file->getPath();
},
$paths
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment