Skip to content

Commit

Permalink
Added full PHP 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
adbario authored Oct 2, 2016
1 parent f2cf065 commit 2cdc930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dot.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ public function get($key = null, $default = null)
* @param string $key Path
* @return boolean
*/
public function has(string $key)
public function has($key)
{
$keys = explode('.', $key);
$keys = explode('.', (string)$key);
$data = &$this->data;
foreach ($keys as $key) {
if (!isset($data[$key])) {
Expand Down

0 comments on commit 2cdc930

Please sign in to comment.