8000 Fix type juggling · zendframework/zend-json-server@b726b93 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit b726b93

Browse files
committed
Fix type juggling
If $key is int with value 0, we have true result for condition. It's wrong.
1 parent 5cdd969 commit b726b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function setOptions(array $options)
7474
continue;
7575
}
7676

77-
if ($key == 'jsonrpc') {
77+
if ('jsonrpc' == $key) {
7878
$this->setVersion($value);
7979
continue;
8080
}

0 commit comments

Comments
 (0)
0