8000 CS · symfony/symfony@220c681 · GitHub
[go: up one dir, main page]

Skip to content

Commit 220c681

Browse files
committed
CS
1 parent a1a66ca commit 220c681

File tree

2 files changed

+37
-42
lines changed

2 files changed

+37
-42
lines changed
Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
1-
<?php
2-
3-
/*
4-
* This file is part of the Symfony package.
5-
*
6-
* (c) Fabien Potencier <fabien@symfony.com>
7-
*
8-
* For the full copyright and license information, please view the LICENSE
9-
* file that was distributed with this source code.
10-
*/
11-
12-
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional\Command;
13-
14-
use Symfony\Bundle\FrameworkBundle\Command\ContainerLintCommand;
15-
use Symfony\Bundle\FrameworkBundle\Console\Application;
16-
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
17-
use Symfony\Component\Cache\PruneableInterface;
18-
use Symfony\Component\Console\Tester\CommandTester;
19-
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
20-
use Symfony\Component\HttpKernel\KernelInterface;
21-
use Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase;
22-
23-
class ContainerLintCommandTest extends WebTestCase
24-
{
25-
public function testCommand()
26-
{
27-
$tester = $this->getCommandTester();
28-
$tester->execute([]);
29-
30-
$this->addToAssertionCount(1);
31-
}
32-
33-
private function getCommandTester(): CommandTester
34-
{
35-
$application = new Application($this->createKernel(['test_case' => 'ContainerDebug']));
36-
$application->add(new ContainerLintCommand());
37-
38-
return new CommandTester($application->find('lint:container'));
39-
}
40-
}
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bundle\FrameworkBundle\Tests\Functional\Command;
13+
14+
use Symfony\Bundle\FrameworkBundle\Command\ContainerLintCommand;
15+
use Symfony\Bundle\FrameworkBundle\Console\Application;
16+
use Symfony\Bundle\FrameworkBundle\Tests\Functional\WebTestCase;
17+
use Symfony\Component\Console\Tester\CommandTester;
18+
19+
class ContainerLintCommandTest extends WebTestCase
20+
{
21+
public function testCommand()
22+
{
23+
$tester = $this->getCommandTester();
24+
$tester->execute([]);
25+
26+
$this->addToAssertionCount(1);
27+
}
28+
29+
private function getCommandTester(): CommandTester
30+
{
31+
$application = new Application($this->createKernel(['test_case' => 'ContainerDebug']));
32+
$application->add(new ContainerLintCommand());
33+
34+
return new CommandTester($application->find('lint:container'));
35+
}
36+
}

src/Symfony/Component/DependencyInjection/Compiler/CheckTypeHintsPass.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
*/
3434
final class CheckTypeHintsPass extends AbstractRecursivePass
3535
{
36-
/** @internal */
37-
const SCALAR_TYPES = ['int', 'float', 'bool', 'string', 'array'];
36+
private const SCALAR_TYPES = ['int', 'float', 'bool', 'string', 'array'];
3837

3938
/**
4039
* If set to true, allows to autoload classes during compilation

0 commit comments

Comments
 (0)
0