Title: PHP syntax error
Last modified: October 21, 2016

---

# PHP syntax error

 *  Resolved [MistaDan](https://wordpress.org/support/users/mistadan/)
 * (@mistadan)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-syntax-error-5/)
 * 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
 * [http://stackoverflow.com/questions/8759905/concatenating-dir-constant-with-a-string-as-an-array-value-which-is-a-class](http://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](https://wordpress.org/support/users/julien731/)
 * (@julien731)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-syntax-error-5/#post-8375814)
 * 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.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [julien731](https://wordpress.org/support/users/julien731/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php-syntax-error-5/#post-8375814)
 * Status: resolved