Skip to content

Commit 1065e75

Browse files
committed
PHPStan fixes
1 parent cd8b565 commit 1065e75

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ parameters:
88
tmpDir: build/phpstan
99
checkOctaneCompatibility: true
1010
checkModelProperties: true
11-
checkMissingIterableValueType: false
11+
treatPhpDocTypesAsCertain: false
1212

src/Facades/Features.php

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,31 @@
55
use Illuminate\Support\Facades\Facade;
66
use Illuminate\Support\Testing\Fakes\Fake;
77
use YlsIdeas\FeatureFlags\Contracts\Features as FeaturesContract;
8+
use YlsIdeas\FeatureFlags\Manager;
89
use YlsIdeas\FeatureFlags\Support\FeatureFake;
910

1011
/**
1112
* @method static \Illuminate\Pipeline\Pipeline pipeline()
1213
* @method static bool accessible(string $feature)
1314
* @method static void turnOn(string $gateway, string $feature)
1415
* @method static void turnOff(string $gateway, string $feature)
15-
* @method static \static noBlade()
16-
* @method static \static noScheduling()
17-
* @method static \static noValidations()
18-
* @method static \static noCommands()
19-
* @method static \static noMiddlewares()
20-
* @method static \static noQueryBuilderMixin()
21-
* @method static \static configureDebugging(bool $value = true)
16+
* @method static Manager noBlade()
17+
* @method static Manager noScheduling()
18+
* @method static Manager noValidations()
19+
* @method static Manager noCommands()
20+
* @method static Manager noMiddlewares()
21+
* @method static Manager noQueryBuilderMixin()
22+
* @method static Manager configureDebugging(bool $value = true)
2223
* @method static bool usesBlade()
2324
* @method static bool usesValidations()
2425
* @method static bool usesScheduling()
2526
* @method static bool usesCommands()
2627
* @method static bool usesMiddlewares()
2728
* @method static bool usesDebugging()
2829
* @method static bool usesQueryBuilderMixin()
29-
* @method static \static callOnExpiredFeatures(array $expiredFeatures, callable|null $handler = null)
30-
* @method static \static applyOnExpiredHandler(\YlsIdeas\FeatureFlags\Contracts\ExpiredFeaturesHandler $handler)
31-
* @method static \static extend(string $driver, callable $builder)
30+
* @method static Manager callOnExpiredFeatures(array $expiredFeatures, callable|null $handler = null)
31+
* @method static Manager applyOnExpiredHandler(\YlsIdeas\FeatureFlags\Contracts\ExpiredFeaturesHandler $handler)
32+
* @method static Manager extend(string $driver, callable $builder)
3233
* @method static \YlsIdeas\FeatureFlags\Support\MaintenanceRepository maintenanceMode()
3334
* @method static void assertAccessed(string $feature, int|null $count = null, string $message = '')
3435
* @method static void assertNotAccessed(string $feature, string $message = '')

0 commit comments

Comments
 (0)