1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-02 18:32:56 +02:00

Drop support for PHP 8.1

This commit is contained in:
Oliver Vogel
2025-06-21 11:38:22 +02:00
parent 19d4ea411e
commit 77bdf1648e
11 changed files with 37 additions and 29 deletions

View File

@@ -16,6 +16,7 @@ use Intervention\Image\Tests\BaseTestCase;
use Mockery;
use PHPUnit\Framework\Attributes\DataProvider;
use stdClass;
use Throwable;
#[CoversClass(AbstractDecoder::class)]
final class AbstractDecoderTest extends BaseTestCase
@@ -95,7 +96,12 @@ final class AbstractDecoderTest extends BaseTestCase
{
public function isValid(mixed $input): bool
{
return parent::isValidBase64($input);
try {
parent::decodeBase64Data($input);
} catch (Throwable) {
return false;
}
return true;
}
public function decode(mixed $input): ImageInterface|ColorInterface