From baf7e7103a736f78c938b6049394b54378b9ceb8 Mon Sep 17 00:00:00 2001 From: joserick Date: Wed, 14 Dec 2022 11:14:20 -0600 Subject: [PATCH] fix: Integrity check --- .github/workflows/main.yml | 2 +- src/PNGMetadata.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac4daff..9582d73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress # Install app deps - composer install --no-interaction --prefer-dist + composer install --no-interaction --prefer-dist --ignore-platform-req=ext-gd - name: The PHP Security Checker uses: symfonycorp/security-checker-action@v5 diff --git a/src/PNGMetadata.php b/src/PNGMetadata.php index 8f571d9..24a23cc 100644 --- a/src/PNGMetadata.php +++ b/src/PNGMetadata.php @@ -211,7 +211,7 @@ public static function getType(string $path) */ public function getThumbnail() { - // Check if the Exif data is not null. + // Check if the Exif data is not null. if ($this->exif_data) { // Check if the Exif data contains a thumbnail if ($thumb = exif_thumbnail($this->exif_data)) { @@ -516,7 +516,7 @@ private function extractTExif(): void private function extractXMP(): void { if (isset($this->chunks['iTXt']) && strncmp($this->chunks['iTXt'], 'XML:com.adobe.xmp', 17) === 0) { - $dom = new \DomDocument('1.0', 'UTF-8'); + $dom = new \DOMDocument('1.0', 'UTF-8'); $dom->preserveWhiteSpace = false; $dom->formatOutput = false; $dom->substituteEntities = false;