Title: Deprecated php8.1 code
Last modified: August 1, 2023

---

# Deprecated php8.1 code

 *  [theMikeD](https://wordpress.org/support/users/themiked/)
 * (@themiked)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/deprecated-php8-1-code/)
 * This plugin contains code deprecated for php8.1. If a fix in the works?
 *     ```wp-block-code
        $ phpcs --standard=PHPCompatibilityWP --runtime-set testVersion 8.1 --extensions=php --ignore=*/vendor/*,*/node_modules/* ./plugins/safe-redirect-manager/
   
       FILE: /Volumes/EVO/Active_Sites/NESN/vm/app/public/wp-content/plugins/safe-redirect-manager/inc/functions.php
       -------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       -------------------------------------------------------------------------------------------------------------
        336 | WARNING | INI directive 'auto_detect_line_endings' is deprecated since PHP 8.1
       -------------------------------------------------------------------------------------------------------------
   
   
       FILE: /Volumes/EVO/Active_Sites/NESN/vm/app/public/wp-content/plugins/safe-redirect-manager/inc/classes/class-srm-post-type.php
       -------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
       -------------------------------------------------------------------------------------------------------------------------------
        670 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
        676 | WARNING | The constant "FILTER_SANITIZE_STRING" is deprecated since PHP 8.1
       -------------------------------------------------------------------------------------------------------------------------------
   
       Time: 233ms; Memory: 16MB
       ```
   

The topic ‘Deprecated php8.1 code’ is closed to new replies.

 * ![](https://ps.w.org/safe-redirect-manager/assets/icon.svg?rev=2791413)
 * [Safe Redirect Manager](https://wordpress.org/plugins/safe-redirect-manager/)
 * [Support Threads](https://wordpress.org/support/plugin/safe-redirect-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-redirect-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-redirect-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-redirect-manager/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [theMikeD](https://wordpress.org/support/users/themiked/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/deprecated-php8-1-code/)
 * Status: not resolved