Fixed static analysis issues

This commit is contained in:
Jan Böhmer 2023-03-17 00:11:01 +01:00
parent c1d1270d59
commit e97a149474
2 changed files with 1 additions and 2 deletions

View file

@ -169,7 +169,7 @@ class ProjectController extends AbstractController
//Clear existing BOM entries if requested
if ($form->get('clear_existing_bom')->getData()) {
$project->getBomEntries()->clear();
$entityManager->flush($project);
$entityManager->flush();
}
try {

View file

@ -59,7 +59,6 @@ class BOMImporter
* @param File $file
* @param array $options
* @param Project $project
* @param array $errors
* @return ProjectBOMEntry[]
*/
public function importFileIntoProject(File $file, Project $project, array $options): array