Title: Fatal PHP Parse Error in PHP 7.2
Last modified: October 1, 2023

---

# Fatal PHP Parse Error in PHP 7.2

 *  Resolved [Michelle Blanchette](https://wordpress.org/support/users/michelleblanchette/)
 * (@michelleblanchette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-parse-error-in-php-7-2/)
 * I was going to submit a PR in the GitHub repo, but it seems the codebase’s current`
   trunk` branch differs drastically from the current release.
 * The current release is unusable for PHP 7 users and completely crashes the site’s
   admin area due to the plugin activating with a fatal parse error:
 *     ```wp-block-code
       PHP Parse error:  syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /var/www/html/wp-content/plugins/plugin-check/admin/admin.php on line 56
       ```
   
 * The error is caused by the indented HEREDOC closure here: [https://github.com/WordPress/plugin-check/blob/3d25aa5a4d1e4f8150516463b85790a0ff1e6141/admin/admin.php#L32](https://github.com/WordPress/plugin-check/blob/3d25aa5a4d1e4f8150516463b85790a0ff1e6141/admin/admin.php#L32)
 * How soon can a new release come out that resolves this issue?
    -  This topic was modified 2 years, 8 months ago by [Michelle Blanchette](https://wordpress.org/support/users/michelleblanchette/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kavya Gokul (a11n)](https://wordpress.org/support/users/properlypurple/)
 * (@properlypurple)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-parse-error-in-php-7-2/#post-17092231)
 * Hi [@michelleblanchette](https://wordpress.org/support/users/michelleblanchette/)!
   The released version of the plugin is built from the [`legacy-plugin` branch on Github](https://github.com/WordPress/plugin-check/tree/legacy-plugin).
   There’s more information about this in [this issue](https://github.com/WordPress/plugin-check/issues/283).
 * > The current release is unusable for PHP 7 users and completely crashes the 
   > site’s admin area due to the plugin activating with a fatal parse error:
 * I haven’t been able to reproduce this with PHP 7.4. I’d recommend creating a 
   new issue on the Github repo with more details about how to reproduce this. You
   can also submit a PR for that particular branch with the fix that you’ve found.
 *  Thread Starter [Michelle Blanchette](https://wordpress.org/support/users/michelleblanchette/)
 * (@michelleblanchette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-parse-error-in-php-7-2/#post-17093990)
 * Understood, [@properlypurple](https://wordpress.org/support/users/properlypurple/)
   ~ Thank you for the quick and thorough response!
 *  Thread Starter [Michelle Blanchette](https://wordpress.org/support/users/michelleblanchette/)
 * (@michelleblanchette)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-parse-error-in-php-7-2/#post-17094006)
 * FYI – [An indented HEREDOC and NOWDOC closing marker became supported in PHP 7.3](https://www.php.net/manual/en/migration73.new-features.php#migration73.new-features.core.heredoc)
   which makes sense why I encountered fatal errors in 7.2 while the errors were
   not encountered by [@properlypurple](https://wordpress.org/support/users/properlypurple/)
   with PHP 7.4.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal PHP Parse Error in PHP 7.2’ is closed to new replies.

 * ![](https://ps.w.org/plugin-check/assets/icon.svg?rev=3166100)
 * [Plugin Check (PCP)](https://wordpress.org/plugins/plugin-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-check/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-check/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michelle Blanchette](https://wordpress.org/support/users/michelleblanchette/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-php-parse-error-in-php-7-2/#post-17094006)
 * Status: resolved