Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"psr/log": "^1",
"ramsey/uuid": "^4.2.3",
"react/event-loop": "^1.4",
"react/promise": "^2.10",
"react/promise": "^3.3",
"simshaun/recurr": "^5",
"ipl/stdlib": ">=0.12.0"
},
Expand All @@ -26,7 +26,7 @@
"ext-ev": "Improves performance, efficiency and avoids system limitations. Highly recommended! (See https://www.php.net/manual/en/intro.ev.php for details)"
},
"autoload": {
"files": ["src/register_cron_aliases.php"],
"files": ["src/compat.php", "src/register_cron_aliases.php"],
"psr-4": {
"ipl\\Scheduler\\": "src"
}
Expand Down
8 changes: 8 additions & 0 deletions src/compat.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace React\Promise;

// CancellablePromiseInterface and ExtendedPromiseInterface extend PromiseInterface and were removed in v3.
// These aliases make existing code compatible with the newest React\Promise.
class_alias(PromiseInterface::class, CancellablePromiseInterface::class);
class_alias(PromiseInterface::class, ExtendedPromiseInterface::class);
Loading