We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 192f93e + 161250d commit 82f3259Copy full SHA for 82f3259
src/JmesPath.php
@@ -5,11 +5,13 @@
5
* Returns data from the input array that matches a JMESPath expression.
6
*
7
* @param string $expression Expression to search.
8
- * @param mixed $data Data to search.
+ * @param mixed $data Data to search.
9
10
* @return mixed|null
11
*/
12
-function search($expression, $data)
13
-{
14
- return Env::search($expression, $data);
+if (!function_exists(__NAMESPACE__ . '\search')) {
+ function search($expression, $data)
+ {
15
+ return Env::search($expression, $data);
16
+ }
17
}
0 commit comments