Title: parse error
Last modified: May 3, 2020

---

# parse error

 *  Resolved [genekelly](https://wordpress.org/support/users/genekelly/)
 * (@genekelly)
 * [6 years ago](https://wordpress.org/support/topic/parse-error-525/)
 * Great work! Can you help me understand what is happening here – an error when
   I try to activate the plugin. My site has Nightingale installed.
 * Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /wp-content/plugins/
   nhsblocks/nhsblocks.php on line 183
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fparse-error-525%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [tblacker](https://wordpress.org/support/users/tblacker/)
 * (@tblacker)
 * [6 years ago](https://wordpress.org/support/topic/parse-error-525/#post-12776654)
 * Hi – this is part of the php 7.4 type declarations, and I mistakenly believed
   it would work on lower versions. Apparently if you have lower than php 7.3 it
   doesnt work. Thank you for highlighting it, will make a change in next release.
   In the meantime, you can either raise your server php levels, or on line 183 
   of nhsblocks.php you can modify:
    `function nhsblocks_block_renderer( string 
   $name, array $attributes, string $content = null ) : string {` to: `function 
   nhsblocks_block_renderer( string $name, array $attributes, string $content = 
   null ) {`
 * Hope that helps.
 *  Plugin Author [tblacker](https://wordpress.org/support/users/tblacker/)
 * (@tblacker)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/parse-error-525/#post-12944142)
 * v1.1.6 resolves this for you – thank you for raising it.

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

The topic ‘parse error’ is closed to new replies.

 * ![](https://ps.w.org/nhsblocks/assets/icon-256x256.png?rev=2151451)
 * [NHS Blocks](https://wordpress.org/plugins/nhsblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nhsblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nhsblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/nhsblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nhsblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nhsblocks/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [tblacker](https://wordpress.org/support/users/tblacker/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/parse-error-525/#post-12944142)
 * Status: resolved