Skip to content

Commit

Permalink
Fix nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Apr 10, 2024
1 parent deef46c commit 32a72f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getConfigTreeBuilder(): TreeBuilder
$rootNode->children()

Check failure on line 41 in src/DependencyInjection/Configuration.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, false)

Using nullsafe method call on non-nullable type Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition. Use -> instead.

Check failure on line 41 in src/DependencyInjection/Configuration.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, false)

Using nullsafe method call on non-nullable type Symfony\Component\Config\Definition\Builder\NodeBuilder. Use -> instead.

Check failure on line 41 in src/DependencyInjection/Configuration.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, false)

Using nullsafe method call on non-nullable type Symfony\Component\Config\Definition\Builder\NodeBuilder. Use -> instead.

Check failure on line 41 in src/DependencyInjection/Configuration.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)

Using nullsafe method call on non-nullable type Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition. Use -> instead.

Check failure on line 41 in src/DependencyInjection/Configuration.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)

Using nullsafe method call on non-nullable type Symfony\Component\Config\Definition\Builder\NodeBuilder. Use -> instead.

Check failure on line 41 in src/DependencyInjection/Configuration.php

View workflow job for this annotation

GitHub Actions / Static Analysis with PHPStan (8.2, highest, 11.x-dev as 11.99.9, true)

Using nullsafe method call on non-nullable type Symfony\Component\Config\Definition\Builder\NodeBuilder. Use -> instead.
->arrayNode('openApiScanPaths')
->prototype('scalar')->end()
->validate()
?->validate()
->always(function ($paths) {
foreach ($paths as $path) {
if (!is_dir($path)) {
Expand All @@ -53,7 +53,7 @@ public function getConfigTreeBuilder(): TreeBuilder
})
->end()
->end()
->arrayNode('api_token')
?->arrayNode('api_token')
->addDefaultsIfNotSet()
->children()
->integerNode('lifetime')
Expand Down

0 comments on commit 32a72f3

Please sign in to comment.