Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Call to a member function getRequires() on bool #57

Open
loevgaard opened this issue Mar 16, 2020 · 1 comment
Open
Labels

Comments

@loevgaard
Copy link

PHP Fatal error:  Uncaught Error: Call to a member function getRequires() on bool in /dev/code/vendor/vaimo/composer-patches/src/Patch/DefinitionList/LoaderComponents/ConstraintsComponent.php:62
Stack trace:
#0 /dev/code/vendor/vaimo/composer-patches/src/Patch/DefinitionList/Loader.php(62): Vaimo\ComposerPatches\Patch\DefinitionList\LoaderComponents\ConstraintsComponent->process(Array, Array)
#1 [internal function]: Vaimo\ComposerPatches\Patch\DefinitionList\Loader->Vaimo\ComposerPatches\Patch\DefinitionList\{closure}(Array, Object(Vaimo\ComposerPatches\Patch\DefinitionList\LoaderComponents\ConstraintsComponent))
#2 /dev/code/vendor/vaimo/composer-patches/src/Patch/DefinitionList/Loader.php(60): array_reduce(Array, Object(Closure), Array)
#3 /dev/code/vendor/vaimo/composer-patches/src/Repository/Processor.php(40): Vaimo\ComposerPatches\Patch\DefinitionList\Loader->loadFromPacka in /dev/code/vendor/vaimo/composer-patches/src/Patch/DefinitionList/LoaderComponents/ConstraintsComponent.php on line 62

I am getting the above error when I run composer require vaimo/composer-patches

@allanpaiste
Copy link
Contributor

Note taken. I'd take this happens when you initially install the plugin or was it already present?

doing this with --no-plugins would probably help, but it's still a bug :)

@allanpaiste allanpaiste added this to the 3.53.3 milestone Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants