Skip to content
Snippets Groups Projects
Commit 032bf128 authored by Marko Ivancic's avatar Marko Ivancic
Browse files

Fix psalm

parent 925a2a09
No related branches found
No related tags found
1 merge request!12Bump PHP, SSP and oidc versions
Pipeline #83860 failed
...@@ -60,7 +60,7 @@ function accounting_hook_cron(array &$cronInfo): void ...@@ -60,7 +60,7 @@ function accounting_hook_cron(array &$cronInfo): void
($retentionPolicy = $moduleConfiguration->getTrackerDataRetentionPolicy()) !== null ($retentionPolicy = $moduleConfiguration->getTrackerDataRetentionPolicy()) !== null
) { ) {
$helpersManager = new HelpersManager(); $helpersManager = new HelpersManager();
$message = sprintf('Handling data retention policy.'); $message = 'Handling data retention policy.';
$logger->info($message); $logger->info($message);
/** @psalm-suppress MixedArrayAssignment */ /** @psalm-suppress MixedArrayAssignment */
$cronInfo['summary'][] = $message; $cronInfo['summary'][] = $message;
......
...@@ -93,8 +93,7 @@ class ModuleConfiguration ...@@ -93,8 +93,7 @@ class ModuleConfiguration
} }
if (! is_string($value)) { if (! is_string($value)) {
$message = sprintf('Job runner maximum activity must be defined either as null, or DateInterval' . $message = 'Job runner maximum activity must be defined either as null, or DateInterval duration (string).';
'duration (string).');
throw new InvalidConfigurationException($message); throw new InvalidConfigurationException($message);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment