Skip to content

Commit

Permalink
Drop PHP 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sprain committed Oct 16, 2023
1 parent 3568ed4 commit 79f8cee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

strategy:
matrix:
php: ['8.0', '8.1', '8.2']
php: ['8.1', '8.2']
stability: ['prefer-lowest', 'prefer-stable']

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{"name": "Manuel Reinhard", "email": "[email protected]"}
],
"require": {
"php": "^8.0.0|^8.1.0|^8.2.0",
"php": "^8.1.0|^8.2.0",
"ext-json": "*",
"ext-dom": "*",
"ext-intl": "*",
Expand Down
6 changes: 3 additions & 3 deletions lib/HtmlPhpExcel/HtmlPhpExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class HtmlPhpExcel
/**
* The instance of the Excel creator used within this library.
*/
private Excel $excel;
private readonly Excel $excel;

public function __construct(
private string $htmlStringOrFile
private readonly string $htmlStringOrFile
) {
$this->excel = Excel::create();
}
Expand Down Expand Up @@ -142,7 +142,7 @@ private function getStyles(HtmlPhpExcelElement\Element $documentElement): array

if ($attributeStyles = $documentElement->getAttribute('_excel-styles')) {
if (!is_array($attributeStyles)) {
$decodedJson = json_decode($attributeStyles, true, 512, JSON_THROW_ON_ERROR);
$decodedJson = json_decode((string) $attributeStyles, true, 512, JSON_THROW_ON_ERROR);
if (null !== $decodedJson) {
$attributeStyles = $decodedJson;
}
Expand Down
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
]);

$rectorConfig->sets([
LevelSetList::UP_TO_PHP_80
LevelSetList::UP_TO_PHP_81
]);
};

0 comments on commit 79f8cee

Please sign in to comment.