-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
PHP 7.2 fixes (method signature) #450
Conversation
…Eav_Model_Entity_Attribute_Source_Table to fix PHP 7.2 strictly enforced method signatures
fixes #449 |
Since the new arguments have no effect perhaps they should be renamed or documented to make it clear that using them will have no effect? |
Added phpdoc info. I think it's probably cleaner than naming the arguments $doNotUse1 and $doNotUse2 unless you had a better idea? |
I don't care that much about argument names, as modern IDEs has visual indication that argument is not used. So having doc comment is good enough for me. |
I prefer to keep the argument names the same, in case other extended classes want to re-add functionality there |
Before this is merged, should we change the
Edit: see below, but changing the default value won't do much, since these methods do in fact get called with values for |
So for example, the method in file
Edit: I just tried this out, and it seems that the getAllOptions does get called with true from
Thus the above change I suggest would break things. It maybe could be fixed like this:
But I'm not positive that |
So, after looking at all this, I'd recommend keeping the PR as it is, and if the community decides to implement the functionality of |
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
…ious core files PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
PHP 7.2 requires method signatures to match when a class overrides a method from the parent. This PR fixes the getAllOptions method in classes that extend Mage_Eav_Model_Entity_Attribute_Source_Table.
In each instance, the child method used no parameters, thus including them will not break anything. There may be other places where this is a problem, and I will fix as I come across them.