Skip to content

Commit 938c86b

Browse files
committed
Replace docblocks with types
1 parent 47e3b3c commit 938c86b

File tree

5 files changed

+6
-24
lines changed

5 files changed

+6
-24
lines changed

Diff for: src/Symfony/Compiler/Discovery/ClassFinder.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55

66
class ClassFinder
77
{
8-
/**
9-
* @var string
10-
*/
11-
private $path;
8+
private string $path;
129

1310
public function __construct(string $path = 'tests')
1411
{

Diff for: src/Symfony/Compiler/Discovery/PropertyDiscovery.php

+2-8
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@
1212

1313
class PropertyDiscovery
1414
{
15-
/**
16-
* @var ClassFinder
17-
*/
18-
private $classFinder;
15+
private ClassFinder $classFinder;
1916

20-
/**
21-
* @var ExtractorFactory
22-
*/
23-
private $extractorFactory;
17+
private ExtractorFactory $extractorFactory;
2418

2519
public function __construct(?ClassFinder $classFinder = null, ?ExtractorFactory $extractorFactory = null)
2620
{

Diff for: src/Symfony/Compiler/ExposeServicesForTestsPass.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
*/
1818
class ExposeServicesForTestsPass implements CompilerPassInterface
1919
{
20-
/**
21-
* @var PropertyDiscovery
22-
*/
23-
private $propertyDiscovery;
20+
private PropertyDiscovery $propertyDiscovery;
2421

2522
public function __construct(?PropertyDiscovery $propertyDiscovery = null)
2623
{

Diff for: src/Symfony/TestCase/SymfonyKernel.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
*/
1313
trait SymfonyKernel
1414
{
15-
/**
16-
* @var KernelInterface|null
17-
*/
18-
protected static $kernel;
15+
protected static ?KernelInterface $kernel = null;
1916

2017
protected static function bootKernel(array $options = []): KernelInterface
2118
{

Diff for: src/TestListener/TestCaseContainerFactory.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99

1010
final class TestCaseContainerFactory implements ContainerFactory
1111
{
12-
/**
13-
* @var ServiceContainerTestCase
14-
*/
15-
private $testCase;
12+
private ServiceContainerTestCase $testCase;
1613

1714
public function __construct(ServiceContainerTestCase $testCase)
1815
{

0 commit comments

Comments
 (0)