From 774ab8b89d47934e54477fc3fb547dc3e1f30b0b Mon Sep 17 00:00:00 2001 From: Dariusz Ruminski Date: Mon, 18 Nov 2024 09:17:10 +0100 Subject: [PATCH] fix --- src/AbstractDoctrineAnnotationFixer.php | 6 ++---- src/Fixer/Internal/ConfigurableFixerTemplateFixer.php | 6 ++++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/AbstractDoctrineAnnotationFixer.php b/src/AbstractDoctrineAnnotationFixer.php index 7ca969fb27f..6a2be5f94de 100644 --- a/src/AbstractDoctrineAnnotationFixer.php +++ b/src/AbstractDoctrineAnnotationFixer.php @@ -28,12 +28,10 @@ * @internal * * @phpstan-type _AutogeneratedInputConfiguration array{ - * scalar_types?: bool, - * union_types?: bool + * ignored_tags?: list * } * @phpstan-type _AutogeneratedComputedConfiguration array{ - * scalar_types: bool, - * union_types: bool + * ignored_tags: list * } * * @implements ConfigurableFixerInterface<_AutogeneratedInputConfiguration, _AutogeneratedComputedConfiguration> diff --git a/src/Fixer/Internal/ConfigurableFixerTemplateFixer.php b/src/Fixer/Internal/ConfigurableFixerTemplateFixer.php index 07d8364878a..cca63ae067e 100644 --- a/src/Fixer/Internal/ConfigurableFixerTemplateFixer.php +++ b/src/Fixer/Internal/ConfigurableFixerTemplateFixer.php @@ -37,6 +37,8 @@ use PhpCsFixer\Fixer\Phpdoc\PhpdocTagTypeFixer; use PhpCsFixer\Fixer\WhitespacesAwareFixerInterface; use PhpCsFixer\FixerConfiguration\AllowedValueSubset; +use PhpCsFixer\FixerConfiguration\FixerOptionBuilder; +use PhpCsFixer\FixerConfiguration\FixerConfigurationResolver; use PhpCsFixer\FixerConfiguration\FixerConfigurationResolverInterface; use PhpCsFixer\FixerDefinition\CodeSample; use PhpCsFixer\FixerDefinition\FixerDefinition; @@ -555,7 +557,7 @@ public function isCandidate(Tokens $tokens): bool public function configure(array $configuration): void { - throw new \LogicException('Not implemented.'); + // void } protected function fixAnnotations(DoctrineAnnotationTokens $doctrineAnnotationTokens): void @@ -565,7 +567,7 @@ protected function fixAnnotations(DoctrineAnnotationTokens $doctrineAnnotationTo public function getConfigurationDefinition(): FixerConfigurationResolverInterface { - throw new \LogicException('Not implemented.'); + return $this->createConfigurationDefinition(); } }; }