-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixed Phalcon\Mvc\ModelInterface
to include getModelsMetaData()
.
#13070
Conversation
d2f54a0
to
902a3b9
Compare
ping @sergeyklay . Need me to submit 4.0.x also? |
I'll cherry pick this to the 4.0.x a bit later if the need arises. Thank you for contributing. Could you please return back the changes in the |
The 2 imports that were removed were:
They are both not used + duplicated. The other imports were reordered alphabetically. What are you suggesting? To re-add the above imports, despite them being not used? Everything works/builds . Shouldn't need to re-add unused imports ... |
Actually I prefer to keep it as is (unordered) and just add new ones to decrease diff. |
It's not about the diff.... It's about correctness. 2 of the imports are not used and shouldn't be imported. |
Btw, shouldn't this change aim 4.0.x? #12676 i will add it there Oh wait we will do anyway changes to ORM so i guess this method will be deleted. To be honest i don't even know if we need this change. |
@virgofx I see 14 additions and 17 deletions in this file and would like to see only 2 deletions. |
Rebased .. but left alphabetized as that's how coding standard is. The reason for the extra deletion is because there was another duplicate |
We can't change any interface in minor release. Thus I added this to the 4.0.0 milestone. |
Also just to you know there is no benefit from ordering imports in code which will be compiled and optimized before release |
I agree compiled code doesn't care; however, the coding standard and those contributing all follow best practices. No reason not to keep things inline best practice. If this is for the 4.0 milestone ... will you fix in a separate PR then with the rest of the interfaces? |
Best practice would also have moving a lot of the constants from Classes into Interfaces as well. If this won't be merged do you want me to submit to 4.0 or will you handle with interface cleanup everywhere in 4.0? If so, want me to close? |
@virgofx Could you please send this PR to the 4.0.x branch? |
I could but is 4.0 selectively cherry picking commits? Seems like it would miss core functionality from 3.x? Just making sure other 3.x stuff is also in 4.0? |
The 4.0.x branch is actual now. |
Fixed
Phalcon\Mvc\ModelInterface
to includegetModelsMetaData()
. This is important for static analysis as the ModelInterface is used as the interface parameter for various plugins and user components.