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

同名的类 composer 提示 #3117

Closed
pangongzi opened this issue Feb 18, 2025 · 1 comment
Closed

同名的类 composer 提示 #3117

pangongzi opened this issue Feb 18, 2025 · 1 comment
Labels

Comments

@pangongzi
Copy link

所属功能组件

其它

ThinkPHP 版本

8.0.3

操作系统

windows

错误信息

Warning: Ambiguous class resolution, "think\exception\ClassNotFoundException" was found in both "

D:/www/cloud-wheat-thinphp/vendor/topthink/framework/src/think\exception\ClassNotFoundException.php
D:/www/cloud-wheat-thinphp/vendor/topthink/think-container/src\exception\ClassNotFoundException.php

the first will be used.
To resolve ambiguity in classes not under your control you can ignore them by path using exclude-files-from-classmap

其它说明

Warning: Ambiguous class resolution, "think\exception\ClassNotFoundException" was found in both "D:/www/cloud-wheat-thinphp/vendor/topthink/framework/src/think\exception\ClassNotFoundException.php" and "D:/www/cloud-wheat-thinphp/vendor/topthink/think-container/src\exception\ClassNotFoundException.php", the first will be usndException" was found in both "D:/www/cloud-wheat-thinphp/vended.

@pangongzi pangongzi added the bug label Feb 18, 2025
@sy-records
Copy link
Member

Duplicate of #3107

@sy-records sy-records marked this as a duplicate of #3107 Feb 18, 2025
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