• Resolved MistaDan

    (@mistadan)


    Hi,
    We use wpengine. They have git repos built in as part of their service. When you push to a wpengine repo, it performs a syntax check on all php files being pushed. If any file fails the syntax check, wpengine quits the push process. I get the following errors when pushing the Awesome Support plugin and the Awesome Support: E-Mail Support plugins

    PHP Parse error: syntax error, unexpected ‘.’, expecting ‘)’ in – on line 10
    remote: – warning: syntax Error Found in wp-content/plugins/awesome-support/vendor/composer/autoload_static.php …

    PHP Parse error: syntax error, unexpected ‘.’, expecting ‘)’ in – on line 10
    remote: – warning: syntax Error Found in wp-content/plugins/awesome-support-email-support/vendor/composer/autoload_static.php …

    Looks like a problem with the way the magic constant __DIR__ is being used, here is a stackoverflow question about it

    https://stackoverflow.com/questions/8759905/concatenating-dir-constant-with-a-string-as-an-array-value-which-is-a-class

    This is preventing us from being able to use versioning for our site, any help would be greatly appreciated.

    Thanks!
    Dan Stevens

Viewing 1 replies (of 1 total)
  • Plugin Author julien731

    (@julien731)

    Do you have the ability to run post-commit commands? In which case you’d be better off pushing the addon without the vendor directory and run Composer after the push.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP syntax error’ is closed to new replies.