Skip to content
Snippets Groups Projects
Commit 481b7484 authored by Torben Hansen's avatar Torben Hansen Committed by Nikita Hovratov
Browse files

[TASK] Remove unnecessary typecasts in ext:recycler

Function argument types of the `resolveTree` function in
the `DeleteRecords` class already use strict types, so the
following typecasts can safely be removed.

Resolves: #103506
Releases: main
Change-Id: I332a2eabdc3727749ff25fbfeee476d0a6b6b39b
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83627


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent b1bde78f
Branches
Tags
No related merge requests found
......@@ -501,9 +501,7 @@ class DeletedRecords
protected function resolveTree(int $id, int $depth, int $begin = 0, string $permsClause = ''): array
{
$depth = (int)$depth;
$begin = (int)$begin;
$id = abs((int)$id);
$id = abs($id);
$theList = [];
if ($begin === 0) {
$theList[] = $id;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment