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

[make:entity] Simplify repository PHPDoc removes method annotations #1520

Merged
merged 2 commits into from
Apr 26, 2024

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Apr 19, 2024

I removed theses from project project, and my IDE (vscode) and PHPStan are okay with that.
It works, because doctrine has already templated the methods

@jrushlow jrushlow added the Feature New Feature label Apr 21, 2024
@jrushlow jrushlow changed the title Simplify repository PHPDoc [make:entity] Simplify repository PHPDoc Apr 24, 2024
@jrushlow jrushlow changed the title [make:entity] Simplify repository PHPDoc [make:entity] Simplify repository PHPDoc removes method annotations Apr 24, 2024
Copy link
Collaborator

@jrushlow jrushlow left a comment

Choose a reason for hiding this comment

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

Awesome! I'm about 99% sure that we are safe to remove the annotations now. Some SymfonyCasts folks and I tried out code completion in PHPStorm and it appears to be working just fine without them...

I'm sure the folks out there with the pitch forks will let us know pretty quick if this does break something after cutting a release. 😄

@jrushlow jrushlow added the Status: Reviewed Has been reviewed by a maintainer label Apr 24, 2024
@jrushlow jrushlow mentioned this pull request Apr 24, 2024
2 tasks
@jrushlow jrushlow merged commit 48846de into symfony:main Apr 26, 2024
7 checks passed
@lyrixx lyrixx deleted the entity-at-method branch April 26, 2024 09:40
@simondaigre
Copy link

On my end this PR broke autocompletion on PHPStorm on projects with ORM 2 (didn't tried with 3)

@lyrixx
Copy link
Member Author

lyrixx commented May 3, 2024

This is really weird, because we tested it with ORM2 and it was okay.
However, what is the version of doctrine/persistence?

@simondaigre
Copy link

3.3.2. Do you want a separate issue for this ?

@jrushlow
Copy link
Collaborator

jrushlow commented May 3, 2024

@simondaigre - Yes if you could create a new issue - I'll get a patch out in the next day or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New Feature Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants