2021-12-02 06:36:36 +08:00
|
|
|
includes:
|
2022-09-14 22:23:56 +08:00
|
|
|
- larastan-extension.neon
|
|
|
|
- phpstan-baseline.neon
|
2021-12-29 09:45:22 +08:00
|
|
|
|
2022-09-14 22:23:56 +08:00
|
|
|
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
|
2023-01-15 22:25:13 +08:00
|
|
|
|
2024-06-21 16:36:32 +08:00
|
|
|
# We know for a fact the JsonApi object used internally is always the Flarum one.
|
|
|
|
- stubs/Tobyz/JsonApiServer/JsonApi.stub
|
|
|
|
|
2023-01-15 22:25:13 +08:00
|
|
|
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
|