Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Apr 23, 2024
2 parents 91d6946 + db6c28b commit 62fae70
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
10 changes: 7 additions & 3 deletions Classes/ViewHelpers/Iterator/ForViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,21 @@ public static function renderStatic(
\Closure $renderChildrenClosure,
RenderingContextInterface $renderingContext
) {
/** @var int $to */
/** @var int|string $to */
$to = $arguments['to'];
/** @var int $from */
/** @var int|string $from */
$from = $arguments['from'];
/** @var int $step */
/** @var int|string $step */
$step = $arguments['step'];
/** @var string|null $iteration */
$iteration = $arguments['iteration'];
$content = '';
$variableProvider = $renderingContext->getVariableProvider();

$to = (integer) $to;
$from = (integer) $from;
$step = (integer) $step;

if (0 === $step) {
throw new \RuntimeException('"step" may not be 0.', 1383267698);
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Iterator/SortViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ protected static function sortArray($array, $arguments)
/**
* Sort an ObjectStorage instance
*
* @param ObjectStorage $storage
* @param ObjectStorage<object> $storage
* @param array $arguments
* @return ObjectStorage
*/
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ natively provided by TYPO3's [Fluid templating engine](https://docs.typo3.org/ot
These include advanced formatters, mathematical calculators, special conditions,
and iterators and array calculators and processors.

| | URL |
|------------------|-----------------------------------------------------|
| **Repository:** | https://github.com/FluidTYPO3/vhs |
| **Read online:** | https://viewhelpers.fluidtypo3.org/fluidtypo3/vhs/ |
| **TER:** | https://extensions.typo3.org/extension/vhs |
| | URL |
|------------------|----------------------------------------------------------------|
| **Repository:** | https://github.com/FluidTYPO3/vhs |
| **Read online:** | https://docs.typo3.org/p/fluidtypo3/vhs/main/en-us/Index.html |
| **TER:** | https://extensions.typo3.org/extension/vhs |
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'conflicts' => '',
'priority' => '',
'module' => '',
'state' => 'stable',
'state' => 'beta',
'internal' => '',
'uploadfolder' => 0,
'createDirs' => '',
Expand Down

0 comments on commit 62fae70

Please sign in to comment.