Drop support for PHP 8.1

This commit is contained in:
Alejandro Celaya
2023-05-29 09:43:12 +02:00
parent 07ce5f05a2
commit ee6a8ede0a
12 changed files with 32 additions and 20 deletions

View File

@@ -19,11 +19,7 @@ use function unlink;
class ImportShortUrlsTest extends CliTestCase
{
/**
* @var false|string|null
* @todo Use native type once PHP 8.1 support is dropped
*/
private mixed $tempCsvFile = null;
private false|string|null $tempCsvFile = null;
protected function setUp(): void
{

View File

@@ -169,7 +169,6 @@ class ListShortUrlsTest extends ApiTestCase
public static function provideFilteredLists(): iterable
{
// FIXME Cannot use enums in constants in PHP 8.1. Change this once support for PHP 8.1 is dropped
$withDeviceLongUrls = static fn (array $shortUrl, ?array $longUrls = null) => [
...$shortUrl,
'deviceLongUrls' => $longUrls ?? [