Monitoring Warnings, Notices and Deprecations with Tideways
Tideways helps you optimize application performance by continuously monitoring and analyzing it.
But that's not all - it also detects warnings, notices, and deprecations from the PHP runtime, which is essential for smooth operations.
To take advantage of this feature, you'll need to enable warnings and notices tracking by adjusting your PHP INI settings as follows:
tideways.features.warnings=1
tideways.features.notices=1
Once the PHP process has been restarted (e.g., the PHP FPM daemon), Tideways will start tracking warnings, notices, and deprecations.
To view the collected data, navigate to the "Non-Fatal Errors" section in Tideways, where you'll see a display similar to this:
As shown, the code is using the mcrypt_module_open()
function, which is marked as deprecated. In this instance, the code is called within the Magento core, so there's no immediate action we can take to address the deprecation.
However, if the deprecation occurred within one of our own modules, we could plan to migrate to an alternative implementation, ensuring future compatibility and avoiding potential issues.
The Tideways feature is still highly beneficial for gaining visibility into deprecated code and error-prone execution paths that may be impacting production, but were not caught by static analysis tools such as PHPStan. By leveraging this feature, you can identify and address potential issues that might have otherwise gone undetected, ensuring a more robust and reliable application.