Config value object instead of manually reading the file #195
main.yml
on: pull_request
Analysis of code
15s
Lint all project files
18s
Matrix: tests
Annotations
29 errors and 4 warnings
Analysis of code:
src/Composer/Config.php#L8
Property CoenJacobs\Mozart\Composer\Config::$data type has no value type specified in iterable type array.
|
Analysis of code:
src/Composer/Config.php#L13
Method CoenJacobs\Mozart\Composer\Config::__construct() has parameter $data with no value type specified in iterable type array.
|
Analysis of code:
src/Composer/Config.php#L18
Method CoenJacobs\Mozart\Composer\Config::loadFromFile() has no return type specified.
|
Analysis of code:
src/Composer/Config.php#L18
Method CoenJacobs\Mozart\Composer\Config::loadFromFile() has parameter $filePath with no type specified.
|
Analysis of code:
src/Composer/Config.php#L20
Parameter #1 $json of function json_decode expects string, string|false given.
|
Analysis of code:
src/Composer/Config.php#L41
Method CoenJacobs\Mozart\Composer\Config::set() has no return type specified.
|
Analysis of code:
src/Composer/Package.php#L76
Method CoenJacobs\Mozart\Composer\Package::setConfig() has no return type specified.
|
Analysis of code:
src/Console/Commands/Compose.php#L63
Parameter #1 $data of class CoenJacobs\Mozart\Composer\Config constructor expects array, object given.
|
Analysis of code:
src/Console/Commands/Compose.php#L64
Access to an undefined property object::$get.
|
Analysis of code:
src/Console/Commands/Compose.php#L82
Parameter #2 $config of class CoenJacobs\Mozart\Mover constructor expects CoenJacobs\Mozart\Composer\Config, object given.
|
PHP 8.1 tests:
tests/MoverTest.php#L68
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 68
|
PHP 8.1 tests:
tests/MoverTest.php#L88
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 88
|
PHP 8.1 tests:
tests/MoverTest.php#L120
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 120
|
PHP 8.1 tests:
tests/MoverTest.php#L202
TypeError: CoenJacobs/Mozart/Composer/Config::__construct(): Argument #1 ($data) must be of type array, stdClass given, called in src/Console/Commands/Compose.php on line 63
|
PHP 8.1 tests
Process completed with exit code 2.
|
PHP 8.0 tests:
tests/MoverTest.php#L68
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 68
|
PHP 8.0 tests:
tests/MoverTest.php#L88
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 88
|
PHP 8.0 tests:
tests/MoverTest.php#L120
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 120
|
PHP 8.0 tests:
tests/MoverTest.php#L202
TypeError: CoenJacobs/Mozart/Composer/Config::__construct(): Argument #1 ($data) must be of type array, stdClass given, called in src/Console/Commands/Compose.php on line 63
|
PHP 8.0 tests
Process completed with exit code 2.
|
PHP 8.2 tests
The job was canceled because "_8_1" failed.
|
PHP 8.2 tests
The operation was canceled.
|
Lint all project files
Process completed with exit code 1.
|
PHP 8.3 tests
The job was canceled because "_8_1" failed.
|
PHP 8.3 tests:
tests/MoverTest.php#L68
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 68
|
PHP 8.3 tests:
tests/MoverTest.php#L88
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 88
|
PHP 8.3 tests:
tests/MoverTest.php#L120
TypeError: CoenJacobs/Mozart/Mover::__construct(): Argument #2 ($config) must be of type CoenJacobs/Mozart/Composer/Config, class@anonymous given, called in tests/MoverTest.php on line 120
|
PHP 8.3 tests:
tests/MoverTest.php#L202
TypeError: CoenJacobs/Mozart/Composer/Config::__construct(): Argument #1 ($data) must be of type array, stdClass given, called in src/Console/Commands/Compose.php on line 63
|
PHP 8.3 tests
The operation was canceled.
|
Analysis of code
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
PHP 8.1 tests
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
PHP 8.0 tests
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Lint all project files
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|