Skip to content

Commit 4fd2203

Browse files
authored
Merge pull request #224 from erikn69/patch-1
PHP 8.4 tests
2 parents d873dcf + b11bf8d commit 4fd2203

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3, 8.2, 8.1, 8.0, 7.4, 7.3]
12+
php: [8.4, 8.3, 8.2, 8.1, 8.0, 7.4, 7.3]
1313
dependency-version: [prefer-lowest, prefer-stable]
1414

1515
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

src/OptimizerChain.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ public function useLogger(LoggerInterface $log)
6262
return $this;
6363
}
6464

65-
public function optimize(string $pathToImage, string $pathToOutput = null)
65+
public function optimize(string $pathToImage, ?string $pathToOutput = null)
6666
{
6767
if ($pathToOutput) {
6868
$check = copy($pathToImage, $pathToOutput);
69-
if($check == false) {
69+
if ($check == false) {
7070
throw new InvalidArgumentException("Cannot copy file");
7171
}
7272
$pathToImage = $pathToOutput;

0 commit comments

Comments
 (0)