Skip to content

refactor: fix phpstan errors in Commands #16185

refactor: fix phpstan errors in Commands

refactor: fix phpstan errors in Commands #16185

Triggered via pull request August 25, 2026 17:09
Status Success
Total duration 26m 3s
Artifacts 9

test-phpunit.yml

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

Annotations

1 error and 32 warnings
DatabaseLive (8.5, OCI8, 8.0) / tests
Process completed with exit code 2.
Others (8.2) / Sanity Tests: /tests/system/CodeIgniterTest.php#L990
Took 1.0547s from 0.5000s limit to run CodeIgniter\\CodeIgniterTest::testRouteAttributeCacheIntegration
SeparateProcess (8.2) / tests: /tests/system/Commands/Encryption/GenerateKeyTest.php#L82
Took 0.6178s from 0.5000s limit to run CodeIgniter\\Commands\\Encryption\\GenerateKeyTest::testGenerateKeyShowsEncodedKey
DatabaseLive (8.2, SQLite3, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L89
Took 0.8192s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, Postgre, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L89
Took 0.8781s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, MySQLi, 5.7) / tests: /tests/system/Commands/CreateDatabaseTest.php#L89
Took 0.8748s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Models/InsertModelTest.php#L240
Took 1.0063s from 0.5000s limit to run CodeIgniter\\Models\\InsertModelTest::testInsertPermitInsertNoData
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/InsertTest.php#L48
Took 1.0212s from 0.5000s limit to run CodeIgniter\\Database\\Live\\InsertTest::testInsertBatch
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ConnectTest.php#L108
Took 1.0532s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ConnectTest::testConnectWithFailover
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Migrations/MigrationRunnerTest.php#L501
Took 1.0707s from 0.5000s limit to run CodeIgniter\\Database\\Migrations\\MigrationRunnerTest::testLatestWithLockingEnabledSucceeds
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1583
Took 1.2331s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testDropKey
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1236
Took 1.5929s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testSetKeyNames
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1680
Took 1.6828s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexes
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Commands/Database/MigrateStatusTest.php#L63
Took 2.4350s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/InsertTest.php#L238
Took 2.5146s from 0.5000s limit to run CodeIgniter\\Database\\Live\\InsertTest::testInsertBatchWithQuery
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L494
Took 2.9503s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testForeignKey
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1795
Took 0.5003s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexesWithForeignKeyOnly
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Database/Live/IncrementTest.php#L65
Took 0.5959s from 0.5000s limit to run CodeIgniter\\Database\\Live\\IncrementTest::testIncrementWithNumericColumnsAndValue
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Commands/DatabaseCommandsTest.php#L49
Took 0.6234s from 0.5000s limit to run CodeIgniter\\Commands\\DatabaseCommandsTest::testMigrate
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L89
Took 0.6346s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Models/DataConverterModelTest.php#L74
Took 0.7554s from 0.5000s limit to run CodeIgniter\\Models\\DataConverterModelTest::testFindAsObject
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Models/DataConverterModelTest.php#L387
Took 0.8455s from 0.5000s limit to run CodeIgniter\\Models\\DataConverterModelTest::testSaveCustomObject
DatabaseLive (8.2, MySQLi, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1680
Took 0.9382s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexes
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/UpsertTest.php#L744
Took 1.1448s from 0.5000s limit to run CodeIgniter\\Database\\Live\\UpsertTest::testUpsertBatchWithQuery
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L112
Took 1.4400s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testOtherDriverDuplicatedDatabase
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Commands/DatabaseCommandsTest.php#L69
Took 1.4976s from 0.5000s limit to run CodeIgniter\\Commands\\DatabaseCommandsTest::testMigrateRollbackInvalidBatchNumber
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Commands/DatabaseCommandsTest.php#L78
Took 1.7464s from 0.5000s limit to run CodeIgniter\\Commands\\DatabaseCommandsTest::testMigrateRollback
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1680
Took 1.8203s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexes
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Commands/CreateDatabaseTest.php#L89
Took 1.9484s from 0.5000s limit to run CodeIgniter\\Commands\\CreateDatabaseTest::testCreateDatabase
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Commands/DatabaseCommandsTest.php#L107
Took 2.0777s from 0.5000s limit to run CodeIgniter\\Commands\\DatabaseCommandsTest::testSeed
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/UpdateTest.php#L665
Took 2.4685s from 0.5000s limit to run CodeIgniter\\Database\\Live\\UpdateTest::testUpdateBatchWithQuery
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L63
Took 3.3410s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testCreateDatabaseWithDots
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L92
Took 3.3661s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testCreateDatabaseIfNotExists

Artifacts

Produced during runtime
Name Size Digest
cache-live-tests-php-8.2-db-none Expired
137 KB
sha256:da2c14239205bc20b74ff625a02fa4fa19e4823fe8a5b049038868340f35180f
database-live-tests-php-8.2-db-MySQLi5.7 Expired
13.6 MB
sha256:bc09d195efede6479208ef41cd9a35d8b5e2ccec80ccd45ede24c134fc8bc878
database-live-tests-php-8.2-db-MySQLi8.0 Expired
13.6 MB
sha256:448fb12868f476854be32b8f39071f18a0c8a26ffaa9ade4fd32ff214ed36e1d
database-live-tests-php-8.2-db-OCI88.0 Expired
13.8 MB
sha256:60164a6dec65e423b4da620e42e9a3c4f5bb9fae8215effb993550dd891a4373
database-live-tests-php-8.2-db-Postgre8.0 Expired
13.3 MB
sha256:742a050c73532f218993912143a35c6286612c407e36d6780f71d7564366c145
database-live-tests-php-8.2-db-SQLSRV8.0 Expired
13.4 MB
sha256:68ce9979e19d63025b879f2c5d203ab2f95a32cf66efa5a7c2c5b868dc4c14bc
database-live-tests-php-8.2-db-SQLite38.0 Expired
13.3 MB
sha256:f4770be6885a50b9e2fdbe8659072e675331767d87f2c5c2d5129a8a77fd4588
sanity-tests-php-8.2-db-none Expired
32 MB
sha256:3f84a7db98b8221de89b03f35f32b2ce265efd60bd2ef803c939e090f8f684a1
separate-process-tests-php-8.2-db-none Expired
3.73 MB
sha256:1cb9f2e33b6276674c14440f1a20b48b14d47ac37636fe4eb8b7b1fd14024ff2