Skip to content

Commit 5088f4a

Browse files
committed
Update php-cs-fixer
1 parent 15a7f97 commit 5088f4a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.php_cs renamed to .php-cs-fixer.dist.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,17 @@
44
->in(['src', 'tests'])
55
;
66

7-
return PhpCsFixer\Config::create()
7+
return (new PhpCsFixer\Config())
88
->setRules([
99
'@PSR2' => true,
1010
'array_syntax' => ['syntax' => 'short'],
1111
'blank_line_before_statement' => true,
1212
'declare_strict_types' => true,
13-
'native_function_invocation' => true,
13+
'native_function_invocation' => ['include' => ['@internal'], 'scope' => 'all', 'strict' => true],
1414
'no_empty_comment' => true,
1515
'no_empty_phpdoc' => true,
1616
'no_empty_statement' => true,
1717
'no_extra_blank_lines' => true,
18-
'no_extra_consecutive_blank_lines' => true,
1918
'no_leading_import_slash' => true,
2019
'no_leading_namespace_whitespace' => true,
2120
'no_unused_imports' => true,

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ tools/phpunit: vendor/bin/phpunit
9898
ln -sf ../vendor/bin/phpunit tools/phpunit
9999

100100
tools/php-cs-fixer:
101-
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v2.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
101+
curl -Ls http://cs.symfony.com/download/php-cs-fixer-v3.phar -o tools/php-cs-fixer && chmod +x tools/php-cs-fixer
102102

103103
tools/deptrac:
104104
curl -Ls https://github.com/sensiolabs-de/deptrac/releases/download/0.24.0/deptrac.phar -o tools/deptrac && chmod +x tools/deptrac

tests/Symfony/TestCase/Fixtures/NoFrameworkBundle/AnotherTestKernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
use Symfony\Component\Config\Loader\LoaderInterface;
77
use Symfony\Component\DependencyInjection\ContainerBuilder;
8-
use Symfony\Component\DependencyInjection\Reference;
98
use Symfony\Component\HttpKernel\Kernel;
109
use Zalas\Injector\PHPUnit\Symfony\Compiler\Discovery\ClassFinder;
1110
use Zalas\Injector\PHPUnit\Symfony\Compiler\Discovery\PropertyDiscovery;

0 commit comments

Comments
 (0)