Skip to content

Commit 52c0a10

Browse files
committed
Try again to avoid CI coverage failures by deleting duplicate class when not parsable
1 parent 48517d3 commit 52c0a10

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
4+
bootstrap="tests/bootstrap.php"
55
executionOrder="depends,defects"
66
cacheResult="false"
77
colors="true"

src/AbstractTerminableCommandAfterSymfony7_3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final protected function execute(InputInterface $input, OutputInterface $output)
5454

5555
abstract protected function commandBody(InputInterface $input, OutputInterface $output): int;
5656

57-
public function handleSignal(int $signal, $previousExitCode = 0): false
57+
public function handleSignal(int $signal, int|false $previousExitCode = 0): false
5858
{
5959
switch ($signal) {
6060
// Shutdown signals

tests/bootstrap.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
$fileToCheck = dirname(__DIR__) . '/src/AbstractTerminableCommandAfterSymfony7_3.php';
6+
7+
if (PHP_VERSION_ID < 8_02_00) {
8+
unlink($fileToCheck);
9+
}
10+
11+
require_once dirname(__DIR__) . '/vendor/autoload.php';

0 commit comments

Comments
 (0)