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

Add generics notation to MenuInterface #331

Merged
merged 2 commits into from
Feb 19, 2021
Merged

Add generics notation to MenuInterface #331

merged 2 commits into from
Feb 19, 2021

Conversation

emodric
Copy link
Contributor

@emodric emodric commented Apr 24, 2020

Solves errors by PHPStan similar to:

image

Copy link
Collaborator

@garak garak left a comment

Choose a reason for hiding this comment

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

I tried to run phpstan on codebase and it looks like there are much more points to fix.
What about to fix them all? At least with level 6

@emodric
Copy link
Contributor Author

emodric commented Apr 25, 2020

Well, this specifically is not about running PHPStan on this repo codebase, but when using Knp\Menu\MenuInterface in other packages, and runing PHPStan on those.

That being said, if I have time, I will take a look at running PHPStan here and see if I get it running at level 6.

@emodric
Copy link
Contributor Author

emodric commented Apr 25, 2020

I forgot to ask, in the meantime, can this be merged any maybe tagged (not super important), so it can be useful for other libs?

@core23
Copy link

core23 commented Oct 18, 2020

Looks like you have to rebase this PR.

Hope this can be merged soon, as it would help many projects that are using phpstan / psalm.

@garak
Copy link
Collaborator

garak commented Oct 18, 2020

Looks like you have to rebase this PR.

No need to rebase, for now

@core23
Copy link

core23 commented Oct 18, 2020

Travis is failing because of some generic phpunit error, that does not happen on the latest 2.x commit: https://travis-ci.org/github/KnpLabs/KnpMenu/builds/579731224

@emodric
Copy link
Contributor Author

emodric commented Feb 18, 2021

@garak Hi! What is the status of this PR? Is this something that is acceptable?

Co-authored-by: Alexander M. Turek <me@derrabus.de>
@garak garak merged commit 56ffccc into KnpLabs:v2 Feb 19, 2021
garak pushed a commit that referenced this pull request Feb 19, 2021
Co-authored-by: Alexander M. Turek <me@derrabus.de>
@emodric
Copy link
Contributor Author

emodric commented Feb 19, 2021

Thanks for the merge @garak ! Can we have a 2.6.1 patch release with the fix? :)

@garak
Copy link
Collaborator

garak commented Feb 19, 2021

Here you are: https://github.com/KnpLabs/KnpMenu/releases/tag/2.6.1

@emodric
Copy link
Contributor Author

emodric commented Feb 19, 2021

Thanks @garak ❤️

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.

6 participants