Skip to content

Commit

Permalink
TASK: Dont @psalm- prefix when using phpstan :D
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jun 21, 2024
1 parent 301b058 commit ca15377
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions Classes/Domain/NodeTemplateDumper/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
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)
{
$this->renderFunction = $renderFunction;
}

/**
* @psalm-param \Closure(string $indentation, string $propertyName): string $renderFunction
* @param \Closure(string $indentation, string $propertyName): string $renderFunction
*/
public static function fromRenderer($renderFunction): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class TemplateConfigurationProcessor
protected $eelEvaluationService;

/**
* @psalm-param array<string, mixed> $configuration
* @psalm-param array<string, mixed> $evaluationContext
* @param array<string, mixed> $configuration
* @param array<string, mixed> $evaluationContext
* @param ProcessingErrors $caughtEvaluationExceptions
* @return RootTemplate
*/
Expand Down Expand Up @@ -145,9 +145,9 @@ private function createTemplateFromTemplatePart(TemplatePart $templatePart): Tem
}

/**
* @psalm-param mixed $rawConfigurationValue
* @psalm-param array<string, mixed> $evaluationContext
* @psalm-return mixed
* @param mixed $rawConfigurationValue
* @param array<string, mixed> $evaluationContext
* @return mixed
* @throws \Neos\Eel\ParserException|\Exception
*/
private function preprocessConfigurationValue($rawConfigurationValue, array $evaluationContext)
Expand Down
22 changes: 11 additions & 11 deletions Classes/Domain/TemplateConfiguration/TemplatePart.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class TemplatePart

/**
* @psalm-readonly
* @psalm-var \Closure(mixed $value, array<string, mixed> $evaluationContext): mixed
* @var \Closure(mixed $value, array<string, mixed> $evaluationContext): mixed
*/
private \Closure $configurationValueProcessor;

Expand All @@ -40,9 +40,9 @@ class TemplatePart
private ProcessingErrors $processingErrors;

/**
* @psalm-param array<string, mixed> $configuration
* @psalm-param array<string, mixed> $evaluationContext
* @psalm-param \Closure(mixed $value, array<string, mixed> $evaluationContext): mixed $configurationValueProcessor
* @param array<string, mixed> $configuration
* @param array<string, mixed> $evaluationContext
* @param \Closure(mixed $value, array<string, mixed> $evaluationContext): mixed $configurationValueProcessor
* @throws StopBuildingTemplatePartException
*/
private function __construct(
Expand All @@ -61,9 +61,9 @@ private function __construct(
}

/**
* @psalm-param array<string, mixed> $configuration
* @psalm-param array<string, mixed> $evaluationContext
* @psalm-param \Closure(mixed $value, array<string, mixed> $evaluationContext): mixed $configurationValueProcessor
* @param array<string, mixed> $configuration
* @param array<string, mixed> $evaluationContext
* @param \Closure(mixed $value, array<string, mixed> $evaluationContext): mixed $configurationValueProcessor
* @throws StopBuildingTemplatePartException
*/
public static function createRoot(
Expand Down Expand Up @@ -102,7 +102,7 @@ public function getFullPathToConfiguration(): array
}

/**
* @psalm-param string|list<string> $configurationPath
* @param string|list<string> $configurationPath
* @throws StopBuildingTemplatePartException
*/
public function withConfigurationByConfigurationPath($configurationPath): self
Expand All @@ -117,7 +117,7 @@ public function withConfigurationByConfigurationPath($configurationPath): self
}

/**
* @psalm-param array<string, mixed> $evaluationContext
* @param array<string, mixed> $evaluationContext
*/
public function withMergedEvaluationContext(array $evaluationContext): self
{
Expand All @@ -134,7 +134,7 @@ public function withMergedEvaluationContext(array $evaluationContext): self
}

/**
* @psalm-param string|list<string> $configurationPath
* @param string|list<string> $configurationPath
* @return mixed
* @throws StopBuildingTemplatePartException
*/
Expand Down Expand Up @@ -185,7 +185,7 @@ public function getRawConfiguration($configurationPath)
}

/**
* @psalm-param string|list<string> $configurationPath
* @param string|list<string> $configurationPath
*/
public function hasConfiguration($configurationPath): bool
{
Expand Down

0 comments on commit ca15377

Please sign in to comment.