Skip to content

Commit

Permalink
Based on dump
Browse files Browse the repository at this point in the history
Copied the relations from the earlier commits.
  • Loading branch information
vmcj committed Feb 4, 2024
1 parent 9945130 commit 8b7bc8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions webapp/src/Controller/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ protected function saveEntity(

/**
* Helper function to get the database structure for an object.
*
* @param string[] $files
* @return array<string, array<array{'target': string, 'targetColumn': string, 'type': string}>>
*/
protected function getDatabaseRelations(array $files, EntityManagerInterface $entityManager): array
{
Expand Down

0 comments on commit 8b7bc8b

Please sign in to comment.