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

class not found #260

Open
Nevercold opened this issue Feb 11, 2023 · 1 comment
Open

class not found #260

Nevercold opened this issue Feb 11, 2023 · 1 comment

Comments

@Nevercold
Copy link

Hello,

when I load in the plugin, during install/update comes the error in the image
I am using the latest Composer version and PHP8.1, macOS 13.2.

It worked then, on Windows and Linux, without problems.

Bildschirm­foto 2023-02-12 um 00 44 30

@parentyazilim
Copy link

To solve this issue, you can try one or more of the following solutions:

  • Upgrade to the latest version of the Composer Merge Plugin: Check to see if a new version of the Composer Merge Plugin has been released that addresses this issue. You can do this by running the following command: composer require wikimedia/composer-merge-plugin. If a new version is available, updating to it may solve the issue.

  • Modify the version constraint of the dependency: If the problem is caused by a package dependency with a different version constraint than what is specified in the root composer.json file, you can modify the version constraint to match what is specified in the root composer.json file. To do this, update the version constraint in the dependency's composer.json file or in the require section of the root composer.json file.

  • Manually merge the composer.json files: If the above solutions do not work, you can try manually merging the composer.json files instead of using the Composer Merge Plugin. To do this, copy the contents of all the composer.json files into a single composer.json file and remove any duplicate entries. Make sure to update the version constraints of any dependencies to match what is specified in the root composer.json file.

  • Use a different tool for merging composer.json files: If none of the above solutions work, you can try using a different tool for merging composer.json files, such as the composer-merge tool. This tool is designed to work with Composer and has built-in support for handling package dependencies with different version constraints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants