Replaced psalm with phpstan #21
test-suite.yaml
on: pull_request
Coding Standards
10s
Static Analysis
10s
Matrix: Tests
Annotations
10 errors
Static Analysis:
src/Config.php#L41
Match arm is unreachable because previous comparison is always true.
|
Static Analysis:
src/Config.php#L54
Method PHLAK\Config\Config::fromDirectory() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
src/Config.php#L268
Method PHLAK\Config\Config::split() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
src/Loaders/Directory.php#L34
Dead catch - PHLAK\Config\Exceptions\InvalidFileException is never thrown in the try block.
|
Static Analysis:
tests/ArrayTest.php#L13
Method PHLAK\Config\Tests\ArrayTest::test_it_can_initialize_an_array() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
tests/ArrayTest.php#L21
Method PHLAK\Config\Tests\ArrayTest::test_it_can_initialize_an_array_with_a_prefix() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
tests/ConfigTest.php#L15
Method PHLAK\Config\Tests\ConfigTest::test_it_is_instantiable() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
tests/ConfigTest.php#L22
Method PHLAK\Config\Tests\ConfigTest::test_it_can_set_and_retrieve_an_item() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
tests/ConfigTest.php#L30
Method PHLAK\Config\Tests\ConfigTest::test_it_can_set_and_retrieve_an_item_by_dot_notation() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|
Static Analysis:
tests/ConfigTest.php#L39
Method PHLAK\Config\Tests\ConfigTest::test_it_returns_null_for_nonexistant_items() throws checked exception PHLAK\Config\Exceptions\InvalidContextException but it's missing from the PHPDoc @throws tag.
|