I resolved the issue.
I was including the path to my local wordpress instance in the php project to have access to the wordpress functions in the IDE.
This was creating a conflict because my plugin which is also published in the wordpress file hierarchy was also being included.
To resolve, I created an includes specific folder in my project folder containing wordpress and other plugins my project requires to have available in the IDE for intellisense.