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 Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore not found #23

Open
justlevine opened this issue Jun 14, 2023 · 5 comments

Comments

@justlevine
Copy link

It seems the generated stub doesnt include the new HPOC classes.

Manually adding woocommerce/src/Internal/DataStores/Orders/ to PHPStan or intelephence (just examples) picks them up.

Should these be included?

@szepeviktor
Copy link
Member

Thank you for your report @justlevine!

No, internal classes are excluded.

->notPath('Internal')

@szepeviktor
Copy link
Member

You could contribute a third finder that does not exclude internals.

@justlevine
Copy link
Author

Thanks for the suggestion @szepeviktor . The finder syntax looks straightforward enough, I'll see what I can come up with 🤞

@szepeviktor
Copy link
Member

Please name it finder-with-internals.php and woocommerce-with-internals-stubs.php

@szepeviktor
Copy link
Member

Or an internals-only finder!

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

No branches or pull requests

2 participants