Skip to content

Commit

Permalink
[TASK] Annotate return of substr for php 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Mar 17, 2023
1 parent d562915 commit be5f12d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Parameter/ParameterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private static function cast($value, string $type, ?string $subType = null)
{
$subType = null;
if (strpos($type, '[]') !== false) {
/** @var string $subType */
$subType = substr($type, 0, -2);
$type = 'array';
}
Expand Down

0 comments on commit be5f12d

Please sign in to comment.