diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index dddb9e6d4f..514898cede 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 47a264bb92..f206204d91 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 {