Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #45 from sethphillips/patch-1
Browse files Browse the repository at this point in the history
strict comparison for getting array value by key
  • Loading branch information
VinceG authored May 17, 2019
2 parents 26c4f17 + 1ff620a commit 134b73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/USPSBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ public function getErrorMessage()
protected function getValueByKey($array, $key)
{
foreach ($array as $k => $each) {
if ($k == $key) {
if ($k === $key) {
return $each;
}

Expand Down

0 comments on commit 134b73f

Please sign in to comment.