Skip to content

Commit 27c3b0a

Browse files
author
awu
committed
chore: Add PHPStan return type annotation and remove unnecessary comment in Configuration class
1 parent a3d41ba commit 27c3b0a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ parameters:
22
level: 10
33
checkMissingCallableSignature: true
44
paths:
5-
- src
5+
- src

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
class Configuration implements ConfigurationInterface
1515
{
16+
/**
17+
* @return TreeBuilder<'array'>
18+
*/
1619
public function getConfigTreeBuilder(): TreeBuilder
1720
{
1821
$approach = array_map(
@@ -26,7 +29,6 @@ public function getConfigTreeBuilder(): TreeBuilder
2629

2730
$treeBuilder = new TreeBuilder('data_mapper');
2831

29-
/** @phpstan-ignore-next-line */
3032
$treeBuilder->getRootNode()
3133
->children()
3234
->enumNode('approach')

0 commit comments

Comments
 (0)