From ca153772798303bac478c0c75f6a9686623b71ad Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:40:41 +0200 Subject: [PATCH] TASK: Dont `@psalm-` prefix when using phpstan :D --- Classes/Domain/NodeTemplateDumper/Comment.php | 6 ++--- .../TemplateConfigurationProcessor.php | 10 ++++----- .../TemplateConfiguration/TemplatePart.php | 22 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Classes/Domain/NodeTemplateDumper/Comment.php b/Classes/Domain/NodeTemplateDumper/Comment.php index 6eb1548..a3c6874 100644 --- a/Classes/Domain/NodeTemplateDumper/Comment.php +++ b/Classes/Domain/NodeTemplateDumper/Comment.php @@ -15,12 +15,12 @@ class Comment { /** - * @psalm-var \Closure(string $indentation, string $propertyName): string $renderFunction + * @var \Closure(string $indentation, string $propertyName): string $renderFunction */ private \Closure $renderFunction; /** - * @psalm-param \Closure(string $indentation, string $propertyName): string $renderFunction + * @param \Closure(string $indentation, string $propertyName): string $renderFunction */ private function __construct(\Closure $renderFunction) { @@ -28,7 +28,7 @@ private function __construct(\Closure $renderFunction) } /** - * @psalm-param \Closure(string $indentation, string $propertyName): string $renderFunction + * @param \Closure(string $indentation, string $propertyName): string $renderFunction */ public static function fromRenderer($renderFunction): self { diff --git a/Classes/Domain/TemplateConfiguration/TemplateConfigurationProcessor.php b/Classes/Domain/TemplateConfiguration/TemplateConfigurationProcessor.php index 9047921..5e5f189 100644 --- a/Classes/Domain/TemplateConfiguration/TemplateConfigurationProcessor.php +++ b/Classes/Domain/TemplateConfiguration/TemplateConfigurationProcessor.php @@ -23,8 +23,8 @@ class TemplateConfigurationProcessor protected $eelEvaluationService; /** - * @psalm-param array $configuration - * @psalm-param array $evaluationContext + * @param array $configuration + * @param array $evaluationContext * @param ProcessingErrors $caughtEvaluationExceptions * @return RootTemplate */ @@ -145,9 +145,9 @@ private function createTemplateFromTemplatePart(TemplatePart $templatePart): Tem } /** - * @psalm-param mixed $rawConfigurationValue - * @psalm-param array $evaluationContext - * @psalm-return mixed + * @param mixed $rawConfigurationValue + * @param array $evaluationContext + * @return mixed * @throws \Neos\Eel\ParserException|\Exception */ private function preprocessConfigurationValue($rawConfigurationValue, array $evaluationContext) diff --git a/Classes/Domain/TemplateConfiguration/TemplatePart.php b/Classes/Domain/TemplateConfiguration/TemplatePart.php index 8aad337..d204ca6 100644 --- a/Classes/Domain/TemplateConfiguration/TemplatePart.php +++ b/Classes/Domain/TemplateConfiguration/TemplatePart.php @@ -30,7 +30,7 @@ class TemplatePart /** * @psalm-readonly - * @psalm-var \Closure(mixed $value, array $evaluationContext): mixed + * @var \Closure(mixed $value, array $evaluationContext): mixed */ private \Closure $configurationValueProcessor; @@ -40,9 +40,9 @@ class TemplatePart private ProcessingErrors $processingErrors; /** - * @psalm-param array $configuration - * @psalm-param array $evaluationContext - * @psalm-param \Closure(mixed $value, array $evaluationContext): mixed $configurationValueProcessor + * @param array $configuration + * @param array $evaluationContext + * @param \Closure(mixed $value, array $evaluationContext): mixed $configurationValueProcessor * @throws StopBuildingTemplatePartException */ private function __construct( @@ -61,9 +61,9 @@ private function __construct( } /** - * @psalm-param array $configuration - * @psalm-param array $evaluationContext - * @psalm-param \Closure(mixed $value, array $evaluationContext): mixed $configurationValueProcessor + * @param array $configuration + * @param array $evaluationContext + * @param \Closure(mixed $value, array $evaluationContext): mixed $configurationValueProcessor * @throws StopBuildingTemplatePartException */ public static function createRoot( @@ -102,7 +102,7 @@ public function getFullPathToConfiguration(): array } /** - * @psalm-param string|list $configurationPath + * @param string|list $configurationPath * @throws StopBuildingTemplatePartException */ public function withConfigurationByConfigurationPath($configurationPath): self @@ -117,7 +117,7 @@ public function withConfigurationByConfigurationPath($configurationPath): self } /** - * @psalm-param array $evaluationContext + * @param array $evaluationContext */ public function withMergedEvaluationContext(array $evaluationContext): self { @@ -134,7 +134,7 @@ public function withMergedEvaluationContext(array $evaluationContext): self } /** - * @psalm-param string|list $configurationPath + * @param string|list $configurationPath * @return mixed * @throws StopBuildingTemplatePartException */ @@ -185,7 +185,7 @@ public function getRawConfiguration($configurationPath) } /** - * @psalm-param string|list $configurationPath + * @param string|list $configurationPath */ public function hasConfiguration($configurationPath): bool {