Skip to content

Replaced psalm with phpstan #21

Replaced psalm with phpstan

Replaced psalm with phpstan #21

Triggered via pull request October 31, 2023 20:47
@PHLAKPHLAK
synchronize #26
phpstan
Status Failure
Total duration 31s
Artifacts

test-suite.yaml

on: pull_request
Coding Standards
10s
Coding Standards
Static Analysis
10s
Static Analysis
Matrix: Tests
Fit to window
Zoom out
Zoom in

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.