composer/composer#11619 is caused by a wrong usage of the $resolve callback passed as argument to the $resolver callable of the Promise constructor. In version 3, it cannot be called without argument anymore.
However, as callable signatures are not described in the argument types, static analysis tools are unable to detect the issue.