Skip to content

Commit

Permalink
fixed phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Oct 2, 2018
1 parent 7c6920d commit 9d2446c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/vendor/
composer.lock
/bin/
composer.lock
4 changes: 2 additions & 2 deletions Form/Type/CronExpressionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ public function getBlockPrefix()
* Will create an array where the first key is 1
* oneIndexedRange(3) will return [1 => 1, 2 => 2, 3 => 3].
*
* @param $end
* @param int $end
* @param int $start
*
* @return array
*/
private function oneIndexedRange($end, $start = 0): array
private function oneIndexedRange(int $end, int $start = 0): array
{
$arr = range($start, $end);
unset($arr[0]);
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@
}
},
"config": {
"bin-dir": "bin",
"sort-packages": true
},
"scripts": {
"test": "./bin/phpunit",
"check-style": "./bin/ecs check DependencyInjection/ Doctrine/ Form/ Tests/",
"fix-style": "./bin/ecs check --fix DependencyInjection/ Doctrine/ Form/ Tests/",
"analyse": "./bin/phpstan analyse -c phpstan.neon -l max"
"test": "./vendor/bin/phpunit",
"check-style": "./vendor/bin/ecs check DependencyInjection/ Doctrine/ Form/ Tests/",
"fix-style": "./vendor/bin/ecs check --fix DependencyInjection/ Doctrine/ Form/ Tests/",
"analyse": "./vendor/bin/phpstan analyse -c phpstan.neon -l max"
}
}

0 comments on commit 9d2446c

Please sign in to comment.