Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add return types required by extending Symfony classes #797

Merged
merged 2 commits into from
Dec 9, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented Dec 9, 2023

Cherry-picked from #784 and updated after review.

This types are inherited from parent class in Symfony.

@@ -22,19 +22,14 @@ public function __construct(private ManagerRegistry $registry)
}

/** @param string $dmName */
public static function setApplicationDocumentManager(Application $application, $dmName)
public static function setApplicationDocumentManager(Application $application, $dmName): void
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static function setApplicationDocumentManager(Application $application, $dmName): void
public static function setApplicationDocumentManager(Application $application, string $dmName): void

I'll check these native types in another PR as I guess we have some more we can add, so feel free to ignore this comment in this PR.

@franmomu franmomu added this to the 5.0.0 milestone Dec 9, 2023
@franmomu franmomu added the Task label Dec 9, 2023
@GromNaN GromNaN merged commit c3cf6ac into doctrine:5.0.x Dec 9, 2023
13 checks passed
@GromNaN GromNaN deleted the return-types branch December 9, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants