Skip to content

Commit d7c8471

Browse files
authored
Symfony 6 support (#49)
* Remove deprecated node filter for phpunit * Symfony 6 support
1 parent 07144d4 commit d7c8471

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"issues": "https://github.com/mac-cain13/daemonizable-command/issues"
1616
},
1717
"require": {
18-
"php": "^7.2|^8.0",
19-
"symfony/console": "^4.0|^5.0",
20-
"symfony/dependency-injection": "^4.0|^5.0"
18+
"php": ">=8.0",
19+
"symfony/console": "^6.0",
20+
"symfony/dependency-injection": "^6.0"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "^8.0 || ^9.0"

phpunit.xml.dist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,4 @@
1818
<directory>./tests/</directory>
1919
</testsuite>
2020
</testsuites>
21-
22-
<filter>
23-
<blacklist>
24-
<directory>./vendor</directory>
25-
<directory>./tests</directory>
26-
</blacklist>
27-
</filter>
2821
</phpunit>

src/Wrep/Daemonizable/Command/EndlessCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ abstract class EndlessCommand extends Command
2626
private $lastPeakUsage;
2727

2828
/**
29-
* @see Symfony\Component\Console\Command\Command::__construct()
29+
* @see Command::__construct()
3030
*/
3131
public function __construct(string $name = null)
3232
{
@@ -50,7 +50,7 @@ public function __construct(string $name = null)
5050
}
5151

5252
/**
53-
* @see Symfony\Component\Console\Command\Command::run()
53+
* @see Command::run()
5454
*/
5555
public function run(InputInterface $input, OutputInterface $output): int
5656
{
@@ -213,9 +213,9 @@ private function getMemoryInfo(bool $peak = false): array
213213
}
214214

215215
/**
216-
* @see Symfony\Component\Console\Command\Command::setCode()
216+
* @see Command::setCode()
217217
*/
218-
public function setCode(callable $code)
218+
public function setCode(callable $code): static
219219
{
220220
// Exact copy of our parent
221221
// Makes sure we can access to call it every iteration

0 commit comments

Comments
 (0)