Skip to content

Commit b7692e5

Browse files
committed
Fix functions include
1 parent 83cd48d commit b7692e5

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"psr-0": {
1313
"React\\Promise": "src/"
1414
},
15-
"files": ["src/React/Promise/functions.php"]
15+
"files": ["src/React/Promise/functions_include.php"]
1616
},
1717
"extra": {
1818
"branch-alias": {

src/React/Promise/functions.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
namespace React\Promise;
44

5-
if (function_exists('React\Promise\resolve')) {
6-
return;
7-
}
8-
95
function resolve($promiseOrValue = null)
106
{
117
if ($promiseOrValue instanceof PromiseInterface) {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
if (!function_exists('React\Promise\resolve')) {
4+
require __DIR__.'/functions.php';
5+
}

0 commit comments

Comments
 (0)