Skip to content

Commit 429bd00

Browse files
committed
function_exists
1 parent 192f93e commit 429bd00

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/JmesPath.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
*
1010
* @return mixed|null
1111
*/
12-
function search($expression, $data)
13-
{
14-
return Env::search($expression, $data);
12+
if (!function_exists(__NAMESPACE__ . '\search')){
13+
function search($expression, $data)
14+
{
15+
return Env::search($expression, $data);
16+
}
1517
}

0 commit comments

Comments
 (0)