Skip to content

Symfony 6 support #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
7 changes: 0 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -18,11 +18,4 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<blacklist>
<directory>./vendor</directory>
<directory>./tests</directory>
</blacklist>
</filter>
</phpunit>
8 changes: 4 additions & 4 deletions src/Wrep/Daemonizable/Command/EndlessCommand.php
Original file line number Diff line number Diff line change
@@ -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