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.
1 parent 4924870 commit 9e8363eCopy full SHA for 9e8363e
src/Functional/Matching.php
@@ -29,7 +29,7 @@ function matching(array $conditions)
29
{
30
MatchException::assert($conditions, __FUNCTION__);
31
32
- return function ($value) use ($conditions) {
+ return static function ($value) use ($conditions) {
33
if (empty($conditions)) {
34
return null;
35
}
@@ -41,7 +41,7 @@ function matching(array $conditions)
41
42
43
44
-if (PHP_VERSION_ID < 80000) {
+if (PHP_VERSION_ID < 80000 && !function_exists('Functional\match')) {
45
eval(<<<'ALIAS'
46
namespace Functional;
47
0 commit comments