If you encounter this error, please note that it is not necessarily the end of your code, for example, omitting an accolade may be at the very beginning of your code, even if your file is 1000 lines.
PHP Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in C:\xampp\htdocs\wpr3\wp-content\plugins\wp ...
When starting the cache-cleaner, this is what I get; $ vendor/bin/cache-clean.js --watch Release 0.0.35 sponsored by https://www.mage2.tv PHP Parse error: syntax ...