You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/src/Config/RepositoryConfiguration.php b/src/Config/RepositoryConfiguration.php
index a4c735b..eb7ebce 100644
--- a/src/Config/RepositoryConfiguration.php+++ b/src/Config/RepositoryConfiguration.php@@ -63,7 +63,8 @@ final class RepositoryConfiguration implements ConfigurationInterface
}
$node->validate()
- ->ifTrue(static function (array $services) { return 0 === \count($services); })+ ->ifTrue(static function (array $services) {+ return 0 === \count($services); })
->thenInvalid('You must enable at least one service.')
;
@@ -87,7 +88,8 @@ final class RepositoryConfiguration implements ConfigurationInterface
->beforeNormalization()->castToArray()->end()
->scalarPrototype()
->validate()
- ->ifTrue(static function ($path) { return !\is_string($path); })+ ->ifTrue(static function ($path) {+ return !\is_string($path); })
->thenInvalid("Invalid path '%s'. It must be a string.")
->end()
->end()
@@ -100,7 +102,8 @@ final class RepositoryConfiguration implements ConfigurationInterface
->scalarNode('path')
->defaultValue('.')
->validate()
- ->ifTrue(static function ($path) { return !\is_string($path); })+ ->ifTrue(static function ($path) {+ return !\is_string($path); })
->thenInvalid("Invalid path '%s'. It must be a string.")
->end()
->end()
Single line closure should not be fixed like that, it's out Symfony coding standard AFAIK. BTW, php-cs-fixer ignores this part.
The text was updated successfully, but these errors were encountered:
The fixed is producing this kind of diff:
Single line closure should not be fixed like that, it's out Symfony coding standard AFAIK. BTW, php-cs-fixer ignores this part.
The text was updated successfully, but these errors were encountered: