-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
extension.neon
45 lines (41 loc) · 1.47 KB
/
extension.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
includes:
- larastan-extension.neon
- phpstan-baseline.neon
parameters:
stubFiles:
- stubs/Illuminate/Contracts/Container/Container.stub
- stubs/Illuminate/Queue/ListenerOptions.stub
- stubs/Illuminate/Support/ServiceProvider.stub
- stubs/Illuminate/Filesystem/Filesystem.stub
- stubs/Illuminate/Filesystem/FilesystemManager.stub
# We're changing the disk return type from Filesystem to Cloud,
# rather than hacking every bit of the codebase with a phpdoc @var.
- stubs/Illuminate/Contracts/Filesystem/Factory.stub
- stubs/Illuminate/Contracts/Filesystem/Cloud.stub
- stubs/Illuminate/Contracts/Filesystem/Filesystem.stub
# We know for a fact the JsonApi object used internally is always the Flarum one.
- stubs/Tobyz/JsonApiServer/JsonApi.stub
- stubs/Tobyz/JsonApiServer/Context.stub
services:
-
class: Flarum\PHPStan\Relations\ModelRelationsExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
- phpstan.broker.propertiesClassReflectionExtension
-
class: Flarum\PHPStan\Attributes\ModelDateAttributesExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
-
class: Flarum\PHPStan\Attributes\ModelCastAttributeExtension
tags:
- phpstan.broker.propertiesClassReflectionExtension
-
class: Flarum\PHPStan\Extender\FilesProvider
arguments:
- %paths%
-
class: Flarum\PHPStan\Extender\Resolver
arguments:
- @Flarum\PHPStan\Extender\FilesProvider
- @defaultAnalysisParser