Skip to content

Commit 65a7fe1

Browse files
committed
Fix up move to php-collective
1 parent 61e0180 commit 65a7fe1

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"minimum-stability": "dev",
3131
"prefer-stable": true,
3232
"config": {
33-
"bin-dir": "bin",
3433
"process-timeout": 0,
3534
"sort-packages": true,
3635
"allow-plugins": {

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" colors="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd">
33

44
<testsuites>
55
<testsuite name="file-storage-image-processor">

src/ImageProcessor.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
namespace PhpCollective\Infrastructure\Storage\Processor\Image;
1818

1919
use GuzzleHttp\Psr7\StreamWrapper;
20-
use http\Exception\InvalidArgumentException;
20+
use InvalidArgumentException;
2121
use Intervention\Image\Image;
2222
use Intervention\Image\ImageManager;
2323
use League\Flysystem\Config;
@@ -29,7 +29,7 @@
2929
use PhpCollective\Infrastructure\Storage\UrlBuilder\UrlBuilderInterface;
3030
use PhpCollective\Infrastructure\Storage\Utility\TemporaryFile;
3131

32-
use function PhpCollective\Infrastructure\Storage\fopen;
32+
use function PhpCollective\Infrastructure\Storage\openFile;
3333

3434
/**
3535
* Image Operator
@@ -222,7 +222,7 @@ public function process(FileInterface $file): FileInterface
222222

223223
// Create a local tmp file on the processing system / machine
224224
$tempFile = TemporaryFile::create();
225-
$tempFileStream = fopen($tempFile, 'wb+');
225+
$tempFileStream = openFile($tempFile, 'wb+');
226226

227227
// Read the data from the files resource if (still) present,
228228
// if not fetch it from the storage backend and write the data
@@ -294,7 +294,7 @@ protected function optimizeAndStore(FileInterface $file, string $path): void
294294
// Optimize it and write it to another file
295295
$this->optimizer()->optimize($optimizerTempFile, $optimizerOutput);
296296
// Open a new stream for the storage system
297-
$optimizerOutputHandler = fopen($optimizerOutput, 'rb+');
297+
$optimizerOutputHandler = openFile($optimizerOutput, 'rb+');
298298

299299
// And store it...
300300
$storage->writeStream(

0 commit comments

Comments
 (0)