Skip to content

Commit

Permalink
Re-Add type annotations to PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-goe committed Jul 8, 2024
1 parent 1e7fd7e commit 4f78d39
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Classes/ViewHelpers/Data/ArrayFirstViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public function initializeArguments()
$this->registerArgument('array', 'array|string', 'the array to return the first value of', false, null);
}

/**
* @param array $arguments
* @param \Closure $renderChildrenClosure
* @param RenderingContextInterface $renderingContext
* @return string|int|bool|array
*/
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext): string|int|bool|array
{
$result = null;
Expand Down
6 changes: 6 additions & 0 deletions Classes/ViewHelpers/Data/ValueForKeyViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ public function initializeArguments()
$this->registerArgument('key', 'string', 'The key to extract the value for', true);
}

/**
* @param array $arguments
* @param \Closure $renderChildrenClosure
* @param RenderingContextInterface $renderingContext
* @return string|int|bool|array
*/
public static function renderStatic(
array $arguments,
\Closure $renderChildrenClosure,
Expand Down
10 changes: 10 additions & 0 deletions Classes/ViewHelpers/Find/FacetIsActiveViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ public function initializeArguments()
$this->registerArgument('type', 'string', 'Query type [string, range]', false, 'string');
}

/**
* @return bool
*/

/**
* @param array $arguments
* @param \Closure $renderChildrenClosure
* @param RenderingContextInterface $renderingContext
* @return string|int|bool|array
*/
public static function renderStatic(
array $arguments,
\Closure $renderChildrenClosure,
Expand Down

0 comments on commit 4f78d39

Please sign in to comment.