Skip to content

Commit aaf730d

Browse files
authored
Merge pull request #4586 from yiisoft/ci-dev-ini
CI tests using development ini
2 parents 29b2d7b + 20467c1 commit aaf730d

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
with:
111111
php-version: ${{ matrix.php }}
112112
extensions: ${{ env.extensions }}
113+
ini-file: development
113114
ini-values: date.timezone='UTC'
114115
coverage: xdebug
115116
tools: composer:v2, pecl

tests/bootstrap.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
if (version_compare(PHP_VERSION, '8.3', '>=')) {
4+
// skip deprecation errors in PHP 8.3 and above
5+
error_reporting(E_ALL & ~E_DEPRECATED);
6+
}
7+
38
defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
49
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',false);
510
defined('YII_DEBUG') or define('YII_DEBUG',true);

tests/framework/db/CDbCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,4 +252,5 @@ public function testFetchModeClass()
252252
}
253253
}
254254

255+
#[\AllowDynamicProperties]
255256
class TestClass {}

tests/framework/web/helpers/CJSONTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public function testJsonSerializable()
8585
$className = get_class($this).'_JsonSerializable';
8686
$classCode = <<<EOL
8787
class $className implements JsonSerializable{
88+
#[ReturnTypeWillChange]
8889
public function jsonSerialize()
8990
{
9091
return 'test';

0 commit comments

Comments
 (0)