Skip to content

Commit 5a1f918

Browse files
committed
Command::execute must return int type
1 parent 539b6fe commit 5a1f918

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/Command/InvalidatePathCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function configure()
6969
/**
7070
* {@inheritdoc}
7171
*/
72-
protected function execute(InputInterface $input, OutputInterface $output)
72+
protected function execute(InputInterface $input, OutputInterface $output): int
7373
{
7474
$paths = $input->getArgument('paths');
7575

@@ -80,5 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8080

8181
$this->getCacheManager()->invalidatePath($path);
8282
}
83+
84+
return 0;
8385
}
8486
}

src/Command/InvalidateRegexCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,12 @@ protected function configure()
7272
/**
7373
* {@inheritdoc}
7474
*/
75-
protected function execute(InputInterface $input, OutputInterface $output)
75+
protected function execute(InputInterface $input, OutputInterface $output): int
7676
{
7777
$regex = $input->getArgument('regex');
7878

7979
$this->getCacheManager()->invalidateRegex($regex);
80+
81+
return 0;
8082
}
8183
}

src/Command/InvalidateTagCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,12 @@ protected function configure()
6767
/**
6868
* {@inheritdoc}
6969
*/
70-
protected function execute(InputInterface $input, OutputInterface $output)
70+
protected function execute(InputInterface $input, OutputInterface $output): int
7171
{
7272
$tags = $input->getArgument('tags');
7373

7474
$this->getCacheManager()->invalidateTags($tags);
75+
76+
return 0;
7577
}
7678
}

src/Command/RefreshPathCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function configure()
6969
/**
7070
* {@inheritdoc}
7171
*/
72-
protected function execute(InputInterface $input, OutputInterface $output)
72+
protected function execute(InputInterface $input, OutputInterface $output): int
7373
{
7474
$paths = $input->getArgument('paths');
7575

@@ -80,5 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8080

8181
$this->getCacheManager()->refreshPath($path);
8282
}
83+
84+
return 0;
8385
}
8486
}

0 commit comments

Comments
 (0)