Skip to content

ensure compatibility with Doctrine ORM 2.8 #2306

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

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Apr 23, 2021

fixes #2302

@@ -27,8 +28,12 @@ class EntityToIdObjectTransformer implements DataTransformerInterface
private $om;
private $entityName;

public function __construct(ObjectManager $om, string $entityName)
public function __construct($om, string $entityName)

Choose a reason for hiding this comment

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

As the minimum required PHP version is 7.2, couldn't you use object typehint here? This would allow to remove is_object check. Unless that's on purpose, for some reason 🤔

@GuilhemN GuilhemN merged commit df8527e into FriendsOfSymfony:2.x Aug 18, 2021
@GuilhemN
Copy link
Member

Thank you @xabbuh!

@xabbuh xabbuh deleted the issue-2302 branch September 21, 2021 15:04
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.

3 participants