Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e323d49

Browse files
committedMar 3, 2025·
fix: update phpstan
1 parent 8b165e4 commit e323d49

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
 

‎composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"require-dev": {
2525
"friendsofphp/php-cs-fixer": "^3.9.5",
26-
"larastan/larastan": "^2.9",
26+
"larastan/larastan": "^2.9|^3.1",
2727
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
2828
"phpstan/phpstan": "^1.10|^2.1",
2929
"phpstan/phpstan-phpunit": "^1.3|^2.0",

‎phpstan.neon.dist

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ parameters:
99
- src
1010
- tests
1111
ignoreErrors:
12+
- identifier: method.alreadyNarrowedType
1213
- identifier: missingType.iterableValue
1314
-
1415
message: "#^Cannot access offset '[a-z.]+' on Illuminate\\\\Contracts\\\\Container\\\\Container.$#"

‎src/Facades/OpenFoodFacts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/**
88
* @method static array barcode(string $value)
9-
* @method static \Illuminate\Support\Collection find(string $searchTerm)
9+
* @method static \Illuminate\Support\Collection<int, array> find(string $searchTerm)
1010
* @method static \OpenFoodFacts\Document getProduct(string $barcode)
1111
*
1212
* @see \OpenFoodFacts\Laravel\OpenFoodFacts

0 commit comments

Comments
 (0)
Please sign in to comment.