mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-12-29 20:26:11 +01: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 e3544f4ade
commit 1af328f27b

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';