Title: PHP 8.1 &#8211; PHP Deprecated
Last modified: July 6, 2023

---

# PHP 8.1 – PHP Deprecated

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-php-deprecated/)
 * Hi.
 * Several of those with PHP 8.1:
 * [06-Jul-2023 18:58:41 UTC] PHP Deprecated: Return type of Twig\Markup::count()
   should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange]
   attribute should be used to temporarily suppress the notice in /home/wp-content/
   plugins/wp-simple-firewall/src/lib/vendor/twig/twig/src/Markup.php on line 38
 * [06-Jul-2023 18:58:13 UTC] PHP Deprecated: mb_strpos(): Passing null to parameter#
   1 ($haystack) of type string is deprecated in /home/wp-content/plugins/wp-simple-
   firewall/src/lib/vendor/fernleafsystems/zxcvbn-php/src/Matchers/SpatialMatch.
   php on line 184
 * Thanks

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

 *  Plugin Support [Jelena](https://wordpress.org/support/users/jmisic/)
 * (@jmisic)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-php-deprecated/#post-16877432)
 * Hi, 
   Thanks for sharing this with us.The messages that start with this:**_Deprecated:
   Return type of_**These aren’t errors. They’re deprecation notices. You probably
   shouldn’t be logging these on a production site. They’re not a problem and they
   don’t cause other errors. You can ignore these completely.Shield has some PHP
   libraries that give deprecation notices because we have to support PHP  7.2.5
   +. However, these deprecations will be removed in our next release.
 * Regards,
 * Jelena
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-php-deprecated/#post-16877436)
 * Hi, i never wrote that those are errors. I know what they are.
 * I always enable debug to a log for 48 hours when i do some major updates or upgrading
   PHP versions.
 * Thanks
 *  Plugin Author [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-php-deprecated/#post-16877452)
 * [@dimalifragis](https://wordpress.org/support/users/dimalifragis/) there was 
   no statement either way about you wrote or what you know. We stated they weren’t
   errors. Since this is a public forums, and our discussion is viewed by folk with
   varying levels of technical ability and experience, we don’t make any assumption
   about what you or anyone else “knows”.

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

The topic ‘PHP 8.1 – PHP Deprecated’ is closed to new replies.

 * ![](https://ps.w.org/wp-simple-firewall/assets/icon-256x256.png?rev=3054572)
 * [Shield: Blocks Bots, Protects Users, and Prevents Security Breaches](https://wordpress.org/plugins/wp-simple-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-simple-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-simple-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-simple-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-simple-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-simple-firewall/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/php-8-1-php-deprecated/#post-16877452)
 * Status: resolved