Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 69841d5

Browse files
- Fixing empty function
1 parent 011f647 commit 69841d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Developer/Json/JsonPath.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static function find($jsonObject, $path) {
5757
$currentElement = $jsonObject;
5858
while ($currentPath !== '$') {
5959
preg_match(self::FIRST_CHILD_KEY, $currentPath, $matches);
60-
if (sizeof($matches).isEmpty()) {
60+
if (empty($matches)) {
6161
return null;
6262
}
6363
$childKey = $matches[1];

0 commit comments

Comments
 (0)