Skip to content

Commit b430f2f

Browse files
committed
fix php 8.4 deprecation
1 parent 8acf69f commit b430f2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/contracts": "^10.0 | ^11.0",
20+
"illuminate/contracts": "^11.0",
2121
"spatie/laravel-package-tools": "^1.14.0",
2222
"statsig/statsigsdk": "^3.0"
2323
},
2424
"require-dev": {
2525
"laravel/pint": "^1.0",
26-
"nunomaduro/collision": "^7.9 | ^8.0",
26+
"nunomaduro/collision": "^8.0",
2727
"larastan/larastan": "^2.0.1",
28-
"orchestra/testbench": "^8.0 | ^9.0",
28+
"orchestra/testbench": "^9.0",
2929
"pestphp/pest": "^3.0",
3030
"pestphp/pest-plugin-arch": "^3.0",
3131
"pestphp/pest-plugin-laravel": "^3.0",

src/LaravelStatsigServiceProvider.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function configurePackage(Package $package): void
3434

3535
public function packageBooted(): void
3636
{
37-
Blade::if('statsigcheckgate', function (string $gateName, string|StatsigUser|Authenticatable $userOrUserId = null) {
37+
Blade::if('statsigcheckgate', function (string $gateName, string|StatsigUser|Authenticatable|null $userOrUserId = null) {
3838
if ($userOrUserId === null) {
3939
return LaravelStatsig::checkGate(Auth::user(), $gateName);
4040
}

0 commit comments

Comments
 (0)