mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
Disable deprecations in test suite from PHP 8.3 onwards
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user