Skip to content

Commit 6b9bdc7

Browse files
committed
fix getting scalar (string, int, float, bool) values: now returns a value of corresponding ензу insted of stdClass with scalar property
1 parent dd222ac commit 6b9bdc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jsonq.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function get($object = true)
9393
{
9494
$this->prepare();
9595

96-
if (is_null($this->_map) || is_string($this->_map)) {
96+
if (is_null($this->_map) || is_scalar($this->_map)) {
9797
return $this->_map;
9898
}
9999

0 commit comments

Comments
 (0)