Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Update KeyTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Apr 11, 2017
1 parent 2b40cdf commit 5756fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helper/Helpers/Arr/KeyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ public function evenKey(array $storage)
});
}

/**
/**
* @param array $storage
* @param string $key
*
* @return bool
*/
public function keyExists(array $storage, $key)
{
return isset($storage[$key]) || $this->get($storage, $key) !== null;
return isset($storage[$key]) || array_key_exists($key, $storage);
}

/**
Expand Down

0 comments on commit 5756fda

Please sign in to comment.