@@ -265,7 +265,7 @@ public function synchronize(string $table, $index): array
265265 $ e ->getMessage (),
266266 ]
267267 ),
268- ContextualFeedbackSeverity::WARNING -> value
268+ ContextualFeedbackSeverity::WARNING
269269 );
270270 } catch (NoConfigurationException $ e ) {
271271 $ this ->addMessage (
@@ -401,7 +401,7 @@ public function runSteps(): void
401401 'LLL:EXT:external_import/Resources/Private/Language/ExternalImport.xlf:importAborted ' ,
402402 'external_import '
403403 ),
404- ContextualFeedbackSeverity::WARNING -> value
404+ ContextualFeedbackSeverity::WARNING
405405 );
406406 }
407407 $ this ->currentData = $ step ->getData ();
@@ -532,12 +532,12 @@ public function debug(string $message, int $severity = 0, $data = null): void
532532 * when the synchronization is complete.
533533 *
534534 * @param string $text The message itself
535- * @param int $status Status of the message. Expected is "success", "warning" or "error"
535+ * @param ContextualFeedbackSeverity $status Status of the message
536536 */
537- public function addMessage (string $ text , int $ status = ContextualFeedbackSeverity::ERROR -> value ): void
537+ public function addMessage (string $ text , ContextualFeedbackSeverity $ status = ContextualFeedbackSeverity::ERROR ): void
538538 {
539539 if (!empty ($ text )) {
540- $ this ->messages [$ status ][] = $ text ;
540+ $ this ->messages [$ status-> value ][] = $ text ;
541541 }
542542 }
543543
@@ -559,6 +559,8 @@ public function resetMessages(): void
559559 $ this ->messages = [
560560 ContextualFeedbackSeverity::ERROR ->value => [],
561561 ContextualFeedbackSeverity::WARNING ->value => [],
562+ ContextualFeedbackSeverity::INFO ->value => [],
563+ ContextualFeedbackSeverity::NOTICE ->value => [],
562564 ContextualFeedbackSeverity::OK ->value => [],
563565 ];
564566 }
0 commit comments