mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10: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),
|
||||
'license_id' => License::whereHubId($mod->licenseID)->value('id'),
|
||||
'source_code_link' => $optionSourceCode?->source_code_link ?? '',
|
||||
'featured' => (bool) $mod?->isFeatured,
|
||||
'featured' => (bool) $mod->isFeatured,
|
||||
'contains_ai_content' => (bool) $optionContainsAi?->contains_ai,
|
||||
'contains_ads' => (bool) $optionContainsAds?->contains_ads,
|
||||
'disabled' => (bool) $mod?->isDisabled,
|
||||
'disabled' => (bool) $mod->isDisabled,
|
||||
'created_at' => Carbon::parse($mod->time, 'UTC'),
|
||||
'updated_at' => Carbon::parse($mod->lastChangeTime, 'UTC'),
|
||||
];
|
||||
|
@ -51,7 +51,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"phpstan": [
|
||||
"./vendor/bin/phpstan analyse --debug --memory-limit=2G"
|
||||
"./vendor/bin/phpstan analyse -c phpstan.neon --debug --memory-limit=2G"
|
||||
],
|
||||
"post-autoload-dump": [
|
||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||
|
@ -1,7 +1,9 @@
|
||||
includes:
|
||||
- ./vendor/larastan/larastan/extension.neon
|
||||
|
||||
parameters:
|
||||
paths:
|
||||
- app/
|
||||
excludePaths:
|
||||
analyseAndScan:
|
||||
- tests/
|
||||
level: 4
|
||||
|
Loading…
x
Reference in New Issue
Block a user