fix: complete InvesteMoz validation and error corrections
This commit is contained in:
@@ -138,7 +138,11 @@ final class SimulationTaxParameterResolver
|
||||
return $this->resolveWithStatus($versions, $component, $periodStart, $periodEnd, $context, 'published');
|
||||
}
|
||||
|
||||
/** Explicit draft preview. Never used by the published-parameter API. */
|
||||
/** Explicit draft preview. Never used by the published-parameter API.
|
||||
* @param array<array-key, mixed> $context
|
||||
* @param array<array-key, mixed> $versions
|
||||
* @return list<array<string, mixed>>
|
||||
*/
|
||||
public function resolveDraftForQa(array $versions, string $component, string $periodStart, string $periodEnd, array $context): array
|
||||
{
|
||||
abort_unless(IsolatedQaDatabase::allowsSchemaChanges(), 404);
|
||||
@@ -146,6 +150,11 @@ final class SimulationTaxParameterResolver
|
||||
return $this->resolveWithStatus($versions, $component, $periodStart, $periodEnd, $context, 'draft');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<array-key, mixed> $context
|
||||
* @param array<array-key, mixed> $versions
|
||||
* @return list<array<string, mixed>>
|
||||
*/
|
||||
private function resolveWithStatus(array $versions, string $component, string $periodStart, string $periodEnd, array $context, string $requiredStatus): array
|
||||
{
|
||||
$start = $this->date($periodStart);
|
||||
|
||||
Reference in New Issue
Block a user