Title: Autoloader class conflict with main package · Issue #6 · wp-cli/entity-command · GitHub
Open Graph Title: Autoloader class conflict with main package · Issue #6 · wp-cli/entity-command
X Title: Autoloader class conflict with main package · Issue #6 · wp-cli/entity-command
Description: There's a conflict between wp-cli/entity-command and the main wp-cli/wp-cli package. The following classes appear in both and are defined in the autoloader of both: WP_CLI\CommandWithDBObject WP_CLI\CommandWithMeta WP_CLI\CommandWithTerm...
Open Graph Description: There's a conflict between wp-cli/entity-command and the main wp-cli/wp-cli package. The following classes appear in both and are defined in the autoloader of both: WP_CLI\CommandWithDBObject WP_CL...
X Description: There's a conflict between wp-cli/entity-command and the main wp-cli/wp-cli package. The following classes appear in both and are defined in the autoloader of both: WP_CLI\CommandWithDBObject W...
Opengraph URL: https://github.com/wp-cli/entity-command/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autoloader class conflict with main package","articleBody":"There's a conflict between `wp-cli/entity-command` and the main `wp-cli/wp-cli` package. The following classes appear in both and are defined in the autoloader of both:\r\n\r\n1. `WP_CLI\\CommandWithDBObject`\r\n2. `WP_CLI\\CommandWithMeta`\r\n3. `WP_CLI\\CommandWithTerms`\r\n4. `WP_CLI\\Fetchers\\Comment`\r\n5. `WP_CLI\\Fetchers\\Post`\r\n6. `WP_CLI\\Fetchers\\Site`\r\n7. `WP_CLI\\Fetchers\\User`\r\n\r\nHaving classes be defined in multiple, conflicting packages results in undefined behaviour and can lead to obscure bugs down the road. We should make sure to only ever have the classes be defined in one place.\r\n\r\nHere's Composer's output when using the switch `-o`:\r\n```\r\nGenerating autoload files\r\nWarning: Ambiguous class resolution, \"WP_CLI\\CommandWithDBObject\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/CommandWithDBObject.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/CommandWithDBObject.php\", the first will be used.\r\nWarning: Ambiguous class resolution, \"WP_CLI\\CommandWithMeta\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/CommandWithMeta.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/CommandWithMeta.php\", the first will be used.\r\nWarning: Ambiguous class resolution, \"WP_CLI\\CommandWithTerms\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/CommandWithTerms.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/CommandWithTerms.php\", the first will be used.\r\nWarning: Ambiguous class resolution, \"WP_CLI\\Fetchers\\Comment\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/Fetchers/Comment.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php\", the first will be used.\r\nWarning: Ambiguous class resolution, \"WP_CLI\\Fetchers\\Post\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/Fetchers/Post.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php\", the first will be used.\r\nWarning: Ambiguous class resolution, \"WP_CLI\\Fetchers\\Site\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/Fetchers/Site.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php\", the first will be used.\r\nWarning: Ambiguous class resolution, \"WP_CLI\\Fetchers\\User\" was found in both \"/Users/alain/dev/wp-cli/wp-cli/vendor/wp-cli/entity-command/src/WP_CLI/Fetchers/User.php',\r\n\" and \"/Users/alain/dev/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php\", the first will be used.\r\n```","author":{"url":"https://github.com/schlessera","@type":"Person","name":"schlessera"},"datePublished":"2017-04-13T09:27:28Z","url":"https://github.com/wp-cli/entity-command/issues/6"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:99e170b0-1342-c732-291c-c7394614ad39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8076:9CA74:18E8AAB:21FD639:6AFB8C0E |
| html-safe-nonce | 808f8316f0b9350a72cbb9a8c2cce228e6c4283df5ad2839751b420d0727bb89 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDc2OjlDQTc0OjE4RThBQUI6MjFGRDYzOTo2QUZCOEMwRSIsInZpc2l0b3JfaWQiOiIzODI0MjIzNDc5Mzc0NTEwMjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1f0ebc8db1be9594558e91bef6260bf0e7a76a748925793bf09fd0ba0a19b51d |
| hovercard-subject-tag | issue:221507102 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/entity-command/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b7e58817b9752d1d323c97f8757a600fb1e3a2d06629124a5334a83f4c8e1897/wp-cli/entity-command/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b7e58817b9752d1d323c97f8757a600fb1e3a2d06629124a5334a83f4c8e1897/wp-cli/entity-command/issues/6 |
| og:image:alt | There's a conflict between wp-cli/entity-command and the main wp-cli/wp-cli package. The following classes appear in both and are defined in the autoloader of both: WP_CLI\CommandWithDBObject WP_CL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schlessera |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9694464143465782ecae2a97650b2a2b0708d5c31c74f41ee86da57e315e2735 |
| turbo-cache-control | no-preview |
| go-import | github.com/wp-cli/entity-command git https://github.com/wp-cli/entity-command.git |
| octolytics-dimension-user_id | 1570774 |
| octolytics-dimension-user_login | wp-cli |
| octolytics-dimension-repository_id | 87201389 |
| octolytics-dimension-repository_nwo | wp-cli/entity-command |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 87201389 |
| octolytics-dimension-repository_network_root_nwo | wp-cli/entity-command |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 05d967182208691fc7f2e6af52e82fa7fabf6bd5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width