VSCode and Pimcore - Getting "Undefined type" Warnings from intelephense #16571
Answered
by
cancan101
cancan101
asked this question in
Q&A / Support
-
I am using VSCode to develop a Pimcore project and am getting warnings from the intelephense language server, which is flagging code like: \Pimcore\Model\DataObject\Product::getById with "Undefined type 'Pimcore\Model\DataObject\Product'". Any tricks to make the language server happy? I am not using any AI coding assistants (e.g. Copilot). I just have the PHP extension set up in VSCode. |
Beta Was this translation helpful? Give feedback.
Answered by
cancan101
Apr 18, 2024
Replies: 1 comment
-
This was solved by running |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cancan101
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was solved by running
pimcore:build:classes
.