-
Notifications
You must be signed in to change notification settings - Fork 22
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
Remove default values from method signatures #78
Conversation
I would have personally just filled defaults to the rest of the arguments as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the code, the rest of arguments are required and they can't be null for the components to work properly.
Since values of $genNum
and $queueName
are validated anyway, I'd just remove the defaults and not change any logic inside method bodies. Would that be okay with you?
I suspect the default values on those arguments could be just unintended leftovers. 🤷♂️
packages/zend-service-windowsazure/library/Zend/Service/WindowsAzure/Storage/Queue.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it okay to merge this?
@falkenhawk you requested changes, I have not reviewed these, so marked back as Draft. |
As optional before required params is forbidden in PHP 8.0 these signatures needed to be changed and the functionality of the method adapted accordingly to still retain the original behaviour. Signed-off-by: Alexander Wozniak <wozniak@oktopos.com> Signed-off-by: Elan Ruusamäe <glen@pld-linux.org>
Rebased and applied proposed fixes. Removed Draft |
As optional before required params are forbidden in PHP 8.0 these signatures
needed to be changed and the functionality of the method adapted
accordingly to still retain the original behavior.
Moved out of #67,
which was moved out from #32