mirror of
https://github.com/yiisoft/yii.git
synced 2026-02-20 01:21:22 +01:00
Merge pull request #4586 from yiisoft/ci-dev-ini
CI tests using development ini
This commit is contained in:
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@@ -110,6 +110,7 @@ jobs:
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: ${{ env.extensions }}
|
||||
ini-file: development
|
||||
ini-values: date.timezone='UTC'
|
||||
coverage: xdebug
|
||||
tools: composer:v2, pecl
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -252,4 +252,5 @@ class CDbCommandTest extends CTestCase
|
||||
}
|
||||
}
|
||||
|
||||
#[\AllowDynamicProperties]
|
||||
class TestClass {}
|
||||
@@ -85,6 +85,7 @@ class CJSONTest extends CTestCase {
|
||||
$className = get_class($this).'_JsonSerializable';
|
||||
$classCode = <<<EOL
|
||||
class $className implements JsonSerializable{
|
||||
#[ReturnTypeWillChange]
|
||||
public function jsonSerialize()
|
||||
{
|
||||
return 'test';
|
||||
|
||||
Reference in New Issue
Block a user