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

Undefined type 'XeroAPI\XeroPHP\Api\AccountingApi' #339

Open
WongRichard1020 opened this issue Jan 9, 2024 · 3 comments
Open

Undefined type 'XeroAPI\XeroPHP\Api\AccountingApi' #339

WongRichard1020 opened this issue Jan 9, 2024 · 3 comments

Comments

@WongRichard1020
Copy link

WongRichard1020 commented Jan 9, 2024

SDK you're using (please complete the following information):
This is the package that I installed https://github.com/XeroAPI/xero-php-oauth2
Version 2.23.2

Describe the bug
I can't use AccountingApi() even though I manually imported this above XeroAPI\XeroPHP\Api\AccountingApi. I'm using php Laravel.

To Reproduce
Just type the AccountingApi class name for any IDE which provides an auto-complete feature. I'm using Visual Studio Code as my code editor.

Expected behavior
Undefined type 'XeroAPI\XeroPHP\Api\AccountingApi'

Screenshots
image
image
image

Copy link

github-actions bot commented Jan 9, 2024

PETOSS-380

Copy link

github-actions bot commented Jan 9, 2024

Thanks for raising an issue, a ticket has been created to track your request

@beeradmoore
Copy link

beeradmoore commented Jun 20, 2024

Found this problem while looking into why PHP memory usage jumps to 32mb when we instantiate this class.

Couldn't find a solution to my problem, but for your problem the issue is actually IDE can't load the file as it's ~3mb. This was discussed in #158. They were using PHPStorm, but I observed the same behaviour in VSCode.

EDIT: #292 discusses it in VSCode.

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