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

phpstan: lvl 2 -> 3 #1855

Merged
merged 1 commit into from
Jan 15, 2025
Merged

phpstan: lvl 2 -> 3 #1855

merged 1 commit into from
Jan 15, 2025

Conversation

ostrolucky
Copy link
Member

No description provided.

@ostrolucky ostrolucky merged commit ab136b4 into 2.13.x Jan 15, 2025
15 checks passed
@stof stof deleted the phpstan-lvl3 branch January 15, 2025 11:04
@@ -59,6 +61,8 @@ protected function getEntityManager($name, $shardId = null)
throw new InvalidArgumentException('Shards are not supported anymore using doctrine/dbal >= 3');
}

assert($manager instanceof EntityManager);
Copy link
Member

Choose a reason for hiding this comment

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

I think this assertion will cause issue for projects decorating the EntityManager. We should probably use EntityManagerInterface as type instead.

Copy link
Member Author

@ostrolucky ostrolucky Jan 15, 2025

Choose a reason for hiding this comment

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

Thanks for feedback. Addressed in 2363c43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants