Title: syntax error, PHP version
Last modified: June 25, 2023

---

# syntax error, PHP version

 *  Resolved [kintcz](https://wordpress.org/support/users/kintcz/)
 * (@kintcz)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-php-version/)
 * Dear WP-Stateless Team!
   few days ago I noticed the plugin failed and asked for
   update, but the update also failed because it requested newer PHP version (8.0
   +). So, I updated php and also the plugin. Now the site checker (Total Upkeep)
   reports the error:“Error message:syntax error, unexpected ‘=’ in /www/doc/www.
   kint.cz/www/wp-content/plugins/wp-stateless/vendor/symfony/string/Resources/functions.
   php on line 34″
 * WP-Stateless v. 3.2.4
   PHP v. 8.0.29, I tried it also with 8.1.20 and the same
   error.What may I do?
 * BR Tomas
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyntax-error-php-version%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Volodymyr Palant](https://wordpress.org/support/users/planvova/)
 * (@planvova)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-php-version/#post-16847905)
 * Hello [@kintcz](https://wordpress.org/support/users/kintcz/)
 * This error refers to the [line 34](https://github.com/udx/wp-stateless/blob/2d2ae865486e4515a61432de9351c187c9d1d3a5/vendor/symfony/string/Resources/functions.php#L34)
   where
 * `$string ??= '';`
 * **`Null coalescing assignment operator`** was introduced in P[HP 7.4](https://www.php.net/manual/en/migration74.new-features.php#migration74.new-features.core.null-coalescing-assignment-operator)
 * Did you use PHP 7.3 before upgrade?
    -  This reply was modified 2 years, 9 months ago by [Volodymyr Palant](https://wordpress.org/support/users/planvova/).

Viewing 1 replies (of 1 total)

The topic ‘syntax error, PHP version’ is closed to new replies.

 * ![](https://ps.w.org/wp-stateless/assets/icon.svg?rev=1715943)
 * [WP-Stateless - Google Cloud Storage](https://wordpress.org/plugins/wp-stateless/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stateless/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stateless/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stateless/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stateless/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stateless/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Volodymyr Palant](https://wordpress.org/support/users/planvova/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/syntax-error-php-version/#post-16847905)
 * Status: resolved