I've just upgraded to Rapid PHP 2025.
Inside Rapid PHP, is there a way to detect which parts of scripts, currently running on site with PHP 8.0, contain code that is deprecated in PHP 8.1, 8.2 and/or 8.3?
detect deprecated code
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
-
- Posts: 1
- Joined: Fri Aug 08, 2025 8:31 am
Re: detect deprecated code
Hello,
To find deprecated code, use tools like PHPCompatibility (with PHP_CodeSniffer) or PHPStan configured for PHP 8.1/8.2/8.3 outside Rapid PHP. You can run these via command line and optionally integrate them as external tools in Rapid PHP. Also, running your code under newer PHP versions with error_reporting(E_ALL) helps catch deprecation warnings.
To find deprecated code, use tools like PHPCompatibility (with PHP_CodeSniffer) or PHPStan configured for PHP 8.1/8.2/8.3 outside Rapid PHP. You can run these via command line and optionally integrate them as external tools in Rapid PHP. Also, running your code under newer PHP versions with error_reporting(E_ALL) helps catch deprecation warnings.