Skip to content

Commit

Permalink
Fix optional before required parameter deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Mar 21, 2024
1 parent 0e45c84 commit 7e3560b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ function wrap($promise, callable $callback): Promise

$deferred = new Deferred();

$promise->onResolve(static function (?\Throwable $exception = null, $result) use ($deferred, $callback) {
$promise->onResolve(static function (?\Throwable $exception, $result) use ($deferred, $callback) {
try {
$result = $callback($exception, $result);
} catch (\Throwable $exception) {
Expand Down

0 comments on commit 7e3560b

Please sign in to comment.