Disable deprecations in test suite from PHP 8.3 onwards

This commit is contained in:
Marco van 't Wout
2025-03-27 16:07:26 +01:00
parent dd3cbb1f2c
commit 20467c1892

View File

@@ -1,5 +1,10 @@
<?php
if (version_compare(PHP_VERSION, '8.3', '>=')) {
// skip deprecation errors in PHP 8.3 and above
error_reporting(E_ALL & ~E_DEPRECATED);
}
defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',false);
defined('YII_DEBUG') or define('YII_DEBUG',true);