Fatal error after updating from 7.4 to 7.5 - incorrect declaration of method as Craft has a different version of React #3935
Answered
by
antonmedv
michielroding
asked this question in
Bugs
-
Deployer Versionv7.5.0 Target OSmacos 14.5 Which PHP version are you using?PHP 8.3 Content of deploy.php or deploy.yaml<?php
namespace Deployer;
require 'recipe/common.php';
host('example.com')
->setLabels(['stage' => 'production']); Steps to reproduceGiven the example deploy script with Craft v4.17.2, the following output is given: dep deploy:setup stage=production
task deploy:setup
PHP Fatal error: Declaration of React\Promise\Internal\FulfilledPromise::then(?callable $onFulfilled = null, ?callable $onRejected = null): React\Promise\PromiseInterface must be compatible with React\Promise\PromiseInterface::then(?callable $onFulfilled = null, ?callable $onRejected = null, ?callable $onProgress = null) in /…/vendor/react/promise/src/Internal/FulfilledPromise.php on line 37
Fatal error: Declaration of React\Promise\Internal\FulfilledPromise::then(?callable $onFulfilled = null, ?callable $onRejected = null): React\Promise\PromiseInterface must be compatible with React\Promise\PromiseInterface::then(?callable $onFulfilled = null, ?callable $onRejected = null, ?callable $onProgress = null) in /…/vendor/react/promise/src/Internal/FulfilledPromise.php on line 37 This seems to be due to |
Beta Was this translation helpful? Give feedback.
Answered by
antonmedv
Oct 23, 2024
Replies: 1 comment
-
Fixed in 7.5.3. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
antonmedv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed in 7.5.3.