Skip to content

Commit 1f0a5b6

Browse files
committed
add optional baseline
1 parent fb92729 commit 1f0a5b6

File tree

7 files changed

+72
-4
lines changed

7 files changed

+72
-4
lines changed

.phpunit.cache/test-results

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"source": "https://github.com/Kyon147/laravel-shopify"
3131
},
3232
"require": {
33-
"php": "^8.1",
33+
"php": ">=8.1",
3434
"ext-json": "*",
3535
"funeralzone/valueobjects": "^0.5",
3636
"gnikyt/basic-shopify-api": "^11.0",

ignore-by-php-version.neon.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use PHPStan\DependencyInjection\NeonAdapter;
6+
7+
$adapter = new NeonAdapter();
8+
9+
$config = [];
10+
11+
12+
if (PHP_VERSION_ID >= 80408) {
13+
$config = array_merge_recursive($config, $adapter->load(__DIR__.'/phpstan-baseline-84.neon'));
14+
}
15+
16+
if (PHP_VERSION_ID < 80408) {
17+
$config = array_merge_recursive($config, $adapter->load(__DIR__.'/phpstan-baseline-81.neon'));
18+
}
19+
20+
return $config;
File renamed without changes.

phpstan-baseline-84.neon

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Deprecated in PHP 8\.4\: Parameter \#1 \$session \(Gnikyt\\BasicShopifyAPI\\Session\) is implicitly nullable via default value null\.$#'
5+
identifier: parameter.implicitlyNullable
6+
count: 1
7+
path: src/Contracts/ApiHelper.php
8+
9+
-
10+
message: '#^Deprecated in PHP 8\.4\: Parameter \#1 \$session \(Gnikyt\\BasicShopifyAPI\\Session\) is implicitly nullable via default value null\.$#'
11+
identifier: parameter.implicitlyNullable
12+
count: 2
13+
path: src/Services/ApiHelper.php
14+
15+
-
16+
message: '#^Deprecated in PHP 8\.4\: Parameter \#3 \$payload \(array\) is implicitly nullable via default value null\.$#'
17+
identifier: parameter.implicitlyNullable
18+
count: 1
19+
path: src/Services/ApiHelper.php
20+
21+
-
22+
message: '#^Deprecated in PHP 8\.4\: Parameter \#2 \$delimiter \(string\) is implicitly nullable via default value null\.$#'
23+
identifier: parameter.implicitlyNullable
24+
count: 1
25+
path: src/Util.php
26+
27+
-
28+
message: '#^Variable \$queryString on left side of \?\? always exists and is not nullable\.$#'
29+
identifier: nullCoalesce.variable
30+
count: 1
31+
path: src/Util.php
32+
33+
-
34+
message: '#^Deprecated in PHP 8\.4\: Parameter \#3 \$params \(array\) is implicitly nullable via default value null\.$#'
35+
identifier: parameter.implicitlyNullable
36+
count: 1
37+
path: tests/Stubs/Api.php
38+
39+
-
40+
message: '#^Deprecated in PHP 8\.4\: Parameter \#2 \$requestInstance \(Illuminate\\Http\\Request\) is implicitly nullable via default value null\.$#'
41+
identifier: parameter.implicitlyNullable
42+
count: 1
43+
path: tests/TestCase.php
44+
45+
-
46+
message: '#^Deprecated in PHP 8\.4\: Parameter \#3 \$cb \(Closure\) is implicitly nullable via default value null\.$#'
47+
identifier: parameter.implicitlyNullable
48+
count: 1
49+
path: tests/TestCase.php

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- phpstan-baseline.neon
2+
- ignore-by-php-version.neon.php
33

44
parameters:
55
level: 1

tests/Stubs/Kernel.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Auth\Middleware\Authorize;
88
use Illuminate\Routing\Middleware\SubstituteBindings;
99
use Illuminate\Routing\Middleware\ThrottleRequests;
10-
use Orchestra\Testbench\Http\Middleware\RedirectIfAuthenticated;
1110
use Osiset\ShopifyApp\Http\Middleware\AuthProxy;
1211
use Osiset\ShopifyApp\Http\Middleware\AuthWebhook;
1312
use Osiset\ShopifyApp\Http\Middleware\Billable;
@@ -27,7 +26,6 @@ class Kernel extends \Orchestra\Testbench\Foundation\Http\Kernel
2726
'auth.basic' => AuthenticateWithBasicAuth::class,
2827
'bindings' => SubstituteBindings::class,
2928
'can' => Authorize::class,
30-
'guest' => RedirectIfAuthenticated::class,
3129
'throttle' => ThrottleRequests::class,
3230

3331
// Added for testing

0 commit comments

Comments
 (0)