mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Updates PHPStan to ignore tests
This commit is contained in:
parent
6c96b0e028
commit
1960cec21f
@ -536,10 +536,10 @@ class ImportHubData implements ShouldBeUnique, ShouldQueue
|
|||||||
'thumbnail' => $this->fetchModThumbnail($curl, $mod->fileID, $mod->iconHash, $mod->iconExtension),
|
'thumbnail' => $this->fetchModThumbnail($curl, $mod->fileID, $mod->iconHash, $mod->iconExtension),
|
||||||
'license_id' => License::whereHubId($mod->licenseID)->value('id'),
|
'license_id' => License::whereHubId($mod->licenseID)->value('id'),
|
||||||
'source_code_link' => $optionSourceCode?->source_code_link ?? '',
|
'source_code_link' => $optionSourceCode?->source_code_link ?? '',
|
||||||
'featured' => (bool) $mod?->isFeatured,
|
'featured' => (bool) $mod->isFeatured,
|
||||||
'contains_ai_content' => (bool) $optionContainsAi?->contains_ai,
|
'contains_ai_content' => (bool) $optionContainsAi?->contains_ai,
|
||||||
'contains_ads' => (bool) $optionContainsAds?->contains_ads,
|
'contains_ads' => (bool) $optionContainsAds?->contains_ads,
|
||||||
'disabled' => (bool) $mod?->isDisabled,
|
'disabled' => (bool) $mod->isDisabled,
|
||||||
'created_at' => Carbon::parse($mod->time, 'UTC'),
|
'created_at' => Carbon::parse($mod->time, 'UTC'),
|
||||||
'updated_at' => Carbon::parse($mod->lastChangeTime, 'UTC'),
|
'updated_at' => Carbon::parse($mod->lastChangeTime, 'UTC'),
|
||||||
];
|
];
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"phpstan": [
|
"phpstan": [
|
||||||
"./vendor/bin/phpstan analyse --debug --memory-limit=2G"
|
"./vendor/bin/phpstan analyse -c phpstan.neon --debug --memory-limit=2G"
|
||||||
],
|
],
|
||||||
"post-autoload-dump": [
|
"post-autoload-dump": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
includes:
|
includes:
|
||||||
- ./vendor/larastan/larastan/extension.neon
|
- ./vendor/larastan/larastan/extension.neon
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
paths:
|
paths:
|
||||||
- app/
|
- app/
|
||||||
|
excludePaths:
|
||||||
|
analyseAndScan:
|
||||||
|
- tests/
|
||||||
level: 4
|
level: 4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user