Skip to content

Commit b13818b

Browse files
committed
chore: update to larastan lvl 4
1 parent 5b4ca80 commit b13818b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

phpstan.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ includes:
22
- ./vendor/nunomaduro/larastan/extension.neon
33

44
parameters:
5-
level: 3
5+
level: 4
66
ignoreErrors:
77
- '#Access to an undefined property DOMNamedNodeMap::\$length#'
88
- '#Calling the helper function#'
@@ -12,4 +12,5 @@ parameters:
1212
tmpDir: build/phpstan
1313
checkOctaneCompatibility: true
1414
checkModelProperties: true
15+
treatPhpDocTypesAsCertain: false
1516
checkMissingIterableValueType: false

src/Client/ResponseSequence.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class ResponseSequence
2424
/**
2525
* The response that should be returned when the sequence is empty.
2626
*
27-
* @var \GuzzleHttp\Promise\PromiseInterface
27+
* @var ?\GuzzleHttp\Promise\PromiseInterface
2828
*/
29-
protected $emptyResponse;
29+
protected ?\GuzzleHttp\Promise\PromiseInterface $emptyResponse = null;
3030

3131
/**
3232
* Create a new response sequence.

src/Ray/LaravelRay.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ protected function handleWatcherCallable(Watcher $watcher, Closure $callable = n
2727

2828
$watcher->enable();
2929

30-
if ($rayProxy) {
31-
$watcher->setRayProxy($rayProxy);
32-
}
30+
$watcher->setRayProxy($rayProxy);
3331

3432
if ($callable) {
3533
$callable();

0 commit comments

Comments
 (0)