mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-09-19 23:56:13 +02:00

[TASK] Remove unnecessary is_int check of pageUid

Related #1120
This commit is contained in:
Karsten Nowak 2024-07-30 19:11:47 +02:00
parent f2fe703196
commit 7af57e0625

View file

@ -60,7 +60,6 @@ final class CreateTestDataCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int protected function execute(InputInterface $input, OutputInterface $output): int
{ {
$pageUid = (int)$input->getArgument('pageUid') ?? 0; $pageUid = (int)$input->getArgument('pageUid') ?? 0;
\assert(\is_int($pageUid));
$deleteDataBefore = $input->getOption('delete-data-before') ?? false; $deleteDataBefore = $input->getOption('delete-data-before') ?? false;
\assert(\is_bool($deleteDataBefore)); \assert(\is_bool($deleteDataBefore));
$table = 'tx_tea_domain_model_tea'; $table = 'tx_tea_domain_model_tea';