From 8b7bc8b8f2d4ee34db25d4683412275911a51ca5 Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:56:26 +0100 Subject: [PATCH] Based on dump Copied the relations from the earlier commits. --- phpstan-baseline.neon | 10 ---------- webapp/src/Controller/BaseController.php | 3 +++ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index dddb9e6d4f8..514898cede0 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -180,16 +180,6 @@ parameters: count: 1 path: webapp/src/Controller/API/SubmissionController.php - - - message: "#^Method App\\\\Controller\\\\BaseController\\:\\:getDatabaseRelations\\(\\) has parameter \\$files with no value type specified in iterable type array\\.$#" - count: 1 - path: webapp/src/Controller/BaseController.php - - - - message: "#^Method App\\\\Controller\\\\BaseController\\:\\:getDatabaseRelations\\(\\) return type has no value type specified in iterable type array\\.$#" - count: 1 - path: webapp/src/Controller/BaseController.php - - message: "#^Method App\\\\Controller\\\\Jury\\\\ClarificationController\\:\\:getClarificationFormData\\(\\) return type has no value type specified in iterable type array\\.$#" count: 1 diff --git a/webapp/src/Controller/BaseController.php b/webapp/src/Controller/BaseController.php index 47a264bb92c..f206204d91f 100644 --- a/webapp/src/Controller/BaseController.php +++ b/webapp/src/Controller/BaseController.php @@ -132,6 +132,9 @@ protected function saveEntity( /** * Helper function to get the database structure for an object. + * + * @param string[] $files + * @return array> */ protected function getDatabaseRelations(array $files, EntityManagerInterface $entityManager): array {