diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 33b49f97f..579806fad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,10 +16,6 @@ jobs: - '8.3' - '8.4' - include: - - php-version: 'nightly' - experimental: true - name: PHP ${{ matrix.php-version }} steps: diff --git a/composer.json b/composer.json index 0793de44f..cea796b96 100644 --- a/composer.json +++ b/composer.json @@ -12,9 +12,6 @@ "spreadsheet" ], "config": { - "platform": { - "php" : "8.0.99" - }, "process-timeout": 600, "sort-packages": true, "allow-plugins": { @@ -66,7 +63,7 @@ ] }, "require": { - "php": "^8.0", + "php": ">=8.0.0 <8.5.0", "ext-ctype": "*", "ext-dom": "*", "ext-fileinfo": "*", diff --git a/src/PhpSpreadsheet/Reader/Html.php b/src/PhpSpreadsheet/Reader/Html.php index 767b45a11..2d643a9ea 100644 --- a/src/PhpSpreadsheet/Reader/Html.php +++ b/src/PhpSpreadsheet/Reader/Html.php @@ -170,7 +170,7 @@ class Html extends BaseReader private function readEnding(): string { $meta = stream_get_meta_data($this->fileHandle); - $filename = $meta['uri']; // @phpstan-ignore-line + $filename = $meta['uri']; $size = (int) filesize($filename); if ($size === 0) {