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

Allowing doctrine3 #56

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

mamazu
Copy link
Contributor

@mamazu mamazu commented Jan 16, 2025

In the new version of doctrine 3 the EntityRepository has a property which uses an intersection type this confused the prophecy. This is why I needed to add a new interface to the application.

@mamazu mamazu force-pushed the updating_to_doctrine3 branch from 0ea814d to a1f0478 Compare January 16, 2025 13:36
@mamazu mamazu force-pushed the updating_to_doctrine3 branch from a1f0478 to 40d7650 Compare January 16, 2025 15:02
@@ -62,7 +64,7 @@ public function remove(TaskInterface $task)
/**
* {@inheritdoc}
*/
public function findAll($page = 1, $pageSize = null)
public function findAll($page = 1, $pageSize = null): array
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one is required by doctrine 3.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd recommend not "overriding" this method in the first place as it has different parameters in the default implementation and could possibly be very confusing.

Copy link
Member

Choose a reason for hiding this comment

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

@mamazu yeah 😂 after a few year i would not do that again. Maybe i will rework the repository in the future! for now the change is good.

@mamazu
Copy link
Contributor Author

mamazu commented Feb 3, 2025

@wachterjohannes According to Alexander you should be the best person to review this.

@wachterjohannes
Copy link
Member

@mamazu thanks for the change

@wachterjohannes wachterjohannes merged commit 0b1797b into php-task:master Feb 6, 2025
1 check passed
@mamazu mamazu deleted the updating_to_doctrine3 branch February 6, 2025 10:23
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.

2 participants