Skip to content

Commit 639c4c0

Browse files
committed
WIP
1 parent ef20349 commit 639c4c0

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

phpstan.neon.dist

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ includes:
22
- phpstan-baseline.neon
33

44
parameters:
5-
level: 4
5+
level: 5
66
paths:
77
- src
88
- config
99
tmpDir: build/phpstan
1010
checkOctaneCompatibility: true
1111
checkModelProperties: true
12-
checkMissingIterableValueType: false
13-
12+
noEnvCallsOutsideOfConfig: false

phpunit.xml.dist

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" backupGlobals="false"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" backupGlobals="false"
44
bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false"
55
executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true"
66
beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
@@ -16,7 +16,11 @@
1616
<clover outputFile="build/logs/clover.xml"/>
1717
</report>
1818
</coverage>
19+
<logging>
20+
<junit outputFile="build/report.junit.xml"/>
21+
</logging>
1922
<php>
23+
<env name="APP_KEY" value="base64:F+mHMDBbavrsp/I3WYA5lDSwDJJI/0wQG4eM3csq/lo="/>
2024
<env name="FILESYSTEM_DRIVER" value="cloudinary"/>
2125
<env name="CLOUDINARY_CLOUD_NAME" value="cloudinary_cloud_name"/>
2226
<env name="CLOUDINARY_API_KEY" value="cloudinary_api_key"/>

src/CloudinaryImage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function __construct($name, $attribute = null, $disk = 'cloudinary', $sto
2020

2121
$this->thumbnail(function () {
2222
return $this->value
23+
// @phpstan-ignore-next-line
2324
? Storage::disk('cloudinary')->url([
2425
'path' => $this->value,
2526
'options' => [
@@ -32,6 +33,7 @@ public function __construct($name, $attribute = null, $disk = 'cloudinary', $sto
3233
: null;
3334
})->preview(function () {
3435
return $this->value
36+
// @phpstan-ignore-next-line
3537
? Storage::disk('cloudinary')->url([
3638
'path' => $this->value,
3739
'options' => [

0 commit comments

Comments
 (0)