Replies: 3 comments 8 replies
-
Can you provide examples of PRs that show this? |
Beta Was this translation helpful? Give feedback.
-
https://semver.org/#spec-item-7
|
Beta Was this translation helpful? Give feedback.
-
It is. We can't account for you extending the class and adding methods of your own. Those don't belong to the public API of the framework. Extending and overwriting classes if on your own risk. |
Beta Was this translation helpful? Give feedback.
-
As the title says, but I will try to explain clearly.
For example, Let's imagine that the current version of Laravel is
7.0.0
and it has the following class:And we are using the framework for developing our application and we have decided to extend the functionality of class
A
by inheriting from it.If Laravel introduced a new method (eg. a new feature) such as (
doSomething($differentSignature)
) for class A it considers this as a minor release7.1.0
?I know since Laravel version
6.0.0
its releases will be semantic version-ed and regarding Semantic Versioning schema, this change is not backward compatible.Note:
I have found Backward Compatability Promise for Symfony as it defines what will be guaranteed to be backward compatible and what is not, and they mentioned that adding a new method for a subclass will not be guaranteed to be backward compatible for next minor released. Why Laravel do not have a clarification like that?
Beta Was this translation helpful? Give feedback.
All reactions