Add phpstan level 7(#544)

This commit is contained in:
Saeed Vaziry
2025-03-12 13:31:10 +01:00
committed by GitHub
parent c22bb1fa80
commit 493cbb0849
437 changed files with 4505 additions and 2193 deletions

View File

@ -8,6 +8,11 @@
class EditSourceControl
{
/**
* @param array<string, mixed> $input
*
* @throws ValidationException
*/
public function edit(SourceControl $sourceControl, Project $project, array $input): SourceControl
{
$sourceControl->profile = $input['name'];
@ -27,6 +32,10 @@ public function edit(SourceControl $sourceControl, Project $project, array $inpu
return $sourceControl;
}
/**
* @param array<string, mixed> $input
* @return array<string, array<int, mixed>>
*/
public static function rules(SourceControl $sourceControl, array $input): array
{
$rules = [
@ -35,10 +44,13 @@ public static function rules(SourceControl $sourceControl, array $input): array
],
];
return array_merge($rules, static::providerRules($sourceControl, $input));
return array_merge($rules, self::providerRules($sourceControl, $input));
}
/**
* @param array<string, mixed> $input
* @return array<string, array<int, mixed>>
*
* @throws ValidationException
*/
private static function providerRules(SourceControl $sourceControl, array $input): array