diff --git a/composer.json b/composer.json index df03465..408925b 100644 --- a/composer.json +++ b/composer.json @@ -15,9 +15,9 @@ "issues": "https://github.com/mac-cain13/daemonizable-command/issues" }, "require": { - "php": "^7.2|^8.0", - "symfony/console": "^4.0|^5.0", - "symfony/dependency-injection": "^4.0|^5.0" + "php": ">=8.0", + "symfony/console": "^6.0", + "symfony/dependency-injection": "^6.0" }, "require-dev": { "phpunit/phpunit": "^8.0 || ^9.0" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index a6a01ff..dd175c0 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -18,11 +18,4 @@ ./tests/ - - - - ./vendor - ./tests - - \ No newline at end of file diff --git a/src/Wrep/Daemonizable/Command/EndlessCommand.php b/src/Wrep/Daemonizable/Command/EndlessCommand.php index c9b9e63..6eca842 100644 --- a/src/Wrep/Daemonizable/Command/EndlessCommand.php +++ b/src/Wrep/Daemonizable/Command/EndlessCommand.php @@ -26,7 +26,7 @@ abstract class EndlessCommand extends Command private $lastPeakUsage; /** - * @see Symfony\Component\Console\Command\Command::__construct() + * @see Command::__construct() */ public function __construct(string $name = null) { @@ -50,7 +50,7 @@ public function __construct(string $name = null) } /** - * @see Symfony\Component\Console\Command\Command::run() + * @see Command::run() */ public function run(InputInterface $input, OutputInterface $output): int { @@ -213,9 +213,9 @@ private function getMemoryInfo(bool $peak = false): array } /** - * @see Symfony\Component\Console\Command\Command::setCode() + * @see Command::setCode() */ - public function setCode(callable $code) + public function setCode(callable $code): static { // Exact copy of our parent // Makes sure we can access to call it every iteration