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

Fix phpstan build #770

Merged
merged 2 commits into from
Nov 7, 2021
Merged

Conversation

VincentLanglet
Copy link
Member

I think finally it"s better to have protected properties in order to allow adding annotation to them.

@@ -105,28 +105,30 @@ private function configureAdmin(array $config, ContainerBuilder $container): voi
*/
private function registerSonataDoctrineMapping(array $config): void
{
foreach ($config['class'] as $type => $class) {
$classes = $config['class'];
foreach ($config['class'] as $class) {
if (!class_exists($class)) {
return;
Copy link
Member

Choose a reason for hiding this comment

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

We should throw an exception if the class does not exist

Copy link
Member Author

Choose a reason for hiding this comment

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

Didn't want to change the behavior because I don't know this package but I thought about the same thing

core23
core23 previously approved these changes Nov 7, 2021
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