-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Conversation
@@ -649,7 +649,12 @@ public function removeMethod($methodName) | |||
*/ | |||
public function hasMethod($methodName) | |||
{ | |||
return isset($this->methods[$methodName]); |
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.
Instead normalize the array key at the moment of set the value.
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.
@Maks3w what you mean ?
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.
here write return isset($this->methods[strtolower($methodName)]);
and change line 603 adding a strtolower to the key var.
Replace 596 with a call to hasMethod
Refactor getMethod and removeMethod removing the loops
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.
As you see fixing the issue here only change the visible problem but don't fix the source of the problem.
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.
@Maks3w done ;)
@Maks3w done ;), please let me know if I missed something. thanks. |
What is the status of this? |
I'm waiting for merge or review again if any something missed... |
Fixes #4670