Skip to content

Commit

Permalink
Bugfix #27
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Dec 28, 2017
1 parent e0b2ec0 commit a73449a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
],
"require": {
"php": ">=5.5.9",
"symfony/console": "^3.0",
"symfony/finder": "^3.0",
"symfony/process": "^3.0",
"symfony/yaml": "^3.0"
"symfony/console": "^3.0|^4.0",
"symfony/finder": "^3.0|^4.0",
"symfony/process": "^3.0|^4.0",
"symfony/yaml": "^3.0|^4.0"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 1 addition & 2 deletions src/Command/LintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Terminal;
use Symfony\Component\Finder\SplFileInfo;
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Yaml;

Expand Down Expand Up @@ -213,7 +212,7 @@ protected function executeLint($linter, $input, $output, $fileCount)
$maxColumns = floor((new Terminal())->getWidth() / 2);
$verbosity = $output->getVerbosity();

$linter->setProcessCallback(function ($status, SplFileInfo $file) use ($output, $verbosity, $fileCount, $maxColumns) {
$linter->setProcessCallback(function ($status, \SplFileInfo $file) use ($output, $verbosity, $fileCount, $maxColumns) {
static $i = 1;

$percent = floor(($i / $fileCount) * 100);
Expand Down

0 comments on commit a73449a

Please sign in to comment.