diff options
Diffstat (limited to 'assets/php/vendor/react/promise/tests/fixtures/SimpleFulfilledTestThenable.php')
-rwxr-xr-x | assets/php/vendor/react/promise/tests/fixtures/SimpleFulfilledTestThenable.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/assets/php/vendor/react/promise/tests/fixtures/SimpleFulfilledTestThenable.php b/assets/php/vendor/react/promise/tests/fixtures/SimpleFulfilledTestThenable.php deleted file mode 100755 index 3f66f63..0000000 --- a/assets/php/vendor/react/promise/tests/fixtures/SimpleFulfilledTestThenable.php +++ /dev/null @@ -1,21 +0,0 @@ -<?php - -namespace React\Promise; - -class SimpleFulfilledTestThenable -{ - public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) - { - try { - if ($onFulfilled) { - $onFulfilled('foo'); - } - - return new self(); - } catch (\Throwable $exception) { - return new RejectedPromise($exception); - } catch (\Exception $exception) { - return new RejectedPromise($exception); - } - } -} |