I'm making a new Plugin for CraftCMS, it works fine locally but when I call the services class on our staging server it throws a Syntax Error, Unexpected end of file.
I've installed them both through Composer in the same way, (Symlink in composer.json pointing to local directory.)
I've tried adding "?>" to the end of my PHP file incase that was the issue but didn't resolve. I've also doubled checked all my closing brackets which seem to be fine.
The only difference I can think is maybe PHP version? Locally im on 7.4 and the staging server is 7.2.
Any help would be appreciated.