Skip to content

refactor: fix PHPStan errors #12160

refactor: fix PHPStan errors

refactor: fix PHPStan errors #12160

Triggered via pull request August 15, 2024 23:54
Status Failure
Total duration 10m 59s
Artifacts 7

test-phpunit.yml

on: pull_request
Setup PHP Version for Code Coverage
0s
Setup PHP Version for Code Coverage
Matrix: Others
Matrix: CacheLive
Matrix: DatabaseLive
Matrix: SeparateProcess
Upload coverage results to Coveralls  /  coveralls
Upload coverage results to Coveralls / coveralls
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 27 warnings
DatabaseLive (8.3, MySQLi, 8.0) / tests
Process completed with exit code 2.
DatabaseLive (8.2, MySQLi, 8.0) / tests
Process completed with exit code 2.
DatabaseLive (8.1, MySQLi, 8.0) / tests
Process completed with exit code 2.
DatabaseLive (8.1, MySQLi, 5.7) / tests
Process completed with exit code 2.
Others (8.2) / Sanity Tests: tests/system/API/ResponseTraitTest.php#L137
Took 1.3275s from 0.5000s limit to run CodeIgniter\\API\\ResponseTraitTest::testNoFormatterJSON
Others (8.2) / Sanity Tests: tests/system/Images/ImageMagickHandlerTest.php#L356
Took 1.1648s from 0.5000s limit to run CodeIgniter\\Images\\ImageMagickHandlerTest::testImageCreation
Others (8.2) / Sanity Tests: tests/system/CLI/CLITest.php#L234
Took 1.1154s from 0.5000s limit to run CodeIgniter\\CLI\\CLITest::testColorExceptionForeground
Others (8.2) / Sanity Tests: tests/system/Images/ImageMagickHandlerTest.php#L453
Took 0.5617s from 0.5000s limit to run CodeIgniter\\Images\\ImageMagickHandlerTest::testImageReorientLandscape
Others (8.2) / Sanity Tests: tests/system/Images/ImageMagickHandlerTest.php#L472
Took 0.5261s from 0.5000s limit to run CodeIgniter\\Images\\ImageMagickHandlerTest::testImageReorientPortrait
CacheLive (8.2) / Cache Live Tests: tests/system/Cache/Handlers/AbstractHandlerTestCase.php#L35
Took 1.2688s from 0.5000s limit to run CodeIgniter\\Cache\\Handlers\\MemcachedHandlerTest::testGetMetaData
DatabaseLive (8.2, MySQLi, 8.0) / tests: tests/system/Commands/CreateDatabaseTest.php#L72
Took 1.9353s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLite3, 8.0) / tests: tests/system/Commands/CreateDatabaseTest.php#L72
Took 1.5924s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLite3, 8.0) / tests: tests/system/Commands/Database/MigrateStatusTest.php#L77
Took 0.6561s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.2, Postgre, 8.0) / tests: tests/system/Commands/CreateDatabaseTest.php#L72
Took 2.1390s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, Postgre, 8.0) / tests: tests/system/Database/Live/FabricatorLiveTest.php#L90
Took 0.9140s from 0.5000s limit to run CodeIgniter\\Database\\Live\\FabricatorLiveTest::testCreateThrowsOnFailure
DatabaseLive (8.2, Postgre, 8.0) / tests: tests/system/Commands/Database/MigrateStatusTest.php#L77
Took 0.5276s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
SeparateProcess (8.2) / tests: tests/system/Commands/GenerateKeyTest.php#L77
Took 1.4941s from 0.5000s limit to run CodeIgniter\\Commands\\GenerateKeyTest::testGenerateKeyShowsEncodedKey
DatabaseLive (8.3, SQLSRV, 8.0) / tests
Docker pull failed with exit code 1, back off 3.805 seconds before retry.
DatabaseLive (8.2, SQLSRV, 8.0) / tests: tests/system/Commands/CreateDatabaseTest.php#L72
Took 2.0523s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLSRV, 8.0) / tests: tests/system/Commands/Database/MigrateStatusTest.php#L77
Took 0.6052s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.3, OCI8, 8.0) / tests
Docker pull failed with exit code 1, back off 9.487 seconds before retry.
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Database/Live/ForgeTest.php#L491
Took 2.8090s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testForeignKey
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Commands/Database/MigrateStatusTest.php#L77
Took 1.4971s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Commands/CreateDatabaseTest.php#L72
Took 1.4643s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Database/Live/ForgeTest.php#L1668
Took 1.4185s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexes
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Database/Live/ConnectTest.php#L97
Took 1.0956s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ConnectTest::testConnectWithFailover
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Database/Live/ForgeTest.php#L1233
Took 1.0399s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testSetKeyNames
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Database/Live/ForgeTest.php#L1581
Took 0.8622s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testDropKey
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Database/Live/InsertTest.php#L52
Took 0.8380s from 0.5000s limit to run CodeIgniter\\Database\\Live\\InsertTest::testInsertBatch
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Models/InsertModelTest.php#L52
Took 0.8378s from 0.5000s limit to run CodeIgniter\\Models\\InsertModelTest::testInsertBatchSuccess
DatabaseLive (8.2, OCI8, 8.0) / tests: tests/system/Models/InsertModelTest.php#L239
Took 0.7306s from 0.5000s limit to run CodeIgniter\\Models\\InsertModelTest::testInsertPermitInsertNoData

Artifacts

Produced during runtime
Name Size
cache-live-tests-php-8.2-db-none Expired
140 KB
database-live-tests-php-8.2-db-OCI8 Expired
11 MB
database-live-tests-php-8.2-db-Postgre Expired
10.6 MB
database-live-tests-php-8.2-db-SQLSRV Expired
10.7 MB
database-live-tests-php-8.2-db-SQLite3 Expired
10.7 MB
sanity-tests-php-8.2-db-none Expired
26.9 MB
separate-process-tests-php-8.2-db-none Expired
2.93 MB