mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 23:15:50 +01:00
Fixed static analysis issues
This commit is contained in:
@@ -362,8 +362,8 @@ abstract class BaseAdminController extends AbstractController
|
||||
try {
|
||||
$errors = $importer->importFileAndPersistToDB($file, $options);
|
||||
|
||||
/** @var ConstraintViolationList $error */
|
||||
foreach ($errors as $name => $error) {
|
||||
/** @var ConstraintViolationList $error */
|
||||
foreach ($error['violations'] as $violation) {
|
||||
$this->addFlash('error', $name.': '.$violation->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user