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 83cd48d commit b7692e5Copy full SHA for b7692e5
3 files changed
composer.json
@@ -12,7 +12,7 @@
12
"psr-0": {
13
"React\\Promise": "src/"
14
},
15
- "files": ["src/React/Promise/functions.php"]
+ "files": ["src/React/Promise/functions_include.php"]
16
17
"extra": {
18
"branch-alias": {
src/React/Promise/functions.php
@@ -2,10 +2,6 @@
2
3
namespace React\Promise;
4
5
-if (function_exists('React\Promise\resolve')) {
6
- return;
7
-}
8
-
9
function resolve($promiseOrValue = null)
10
{
11
if ($promiseOrValue instanceof PromiseInterface) {
src/React/Promise/functions_include.php
@@ -0,0 +1,5 @@
1
+<?php
+
+if (!function_exists('React\Promise\resolve')) {
+ require __DIR__.'/functions.php';
+}
0 commit comments