Skip to content

Commit c017814

Browse files
committed
Add lint check for class autoloading PSR compliance
1 parent ac0d369 commit c017814

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ jobs:
3636
- name: "Lint PHP files"
3737
run: |
3838
parallel-lint . --checkstyle --exclude vendor --show-deprecated | cs2pr
39+
40+
- name: "Validate conforming class autoloading"
41+
run: |
42+
composer dump-autoload --no-dev --optimize --strict-psr --strict-ambiguous

tests/Tool/Validator/RelativeReferenceValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tool\Validator;
5+
namespace JsonSchema\Tests\Tool\Validator;
66

77
use JsonSchema\Tool\Validator\RelativeReferenceValidator;
88
use PHPUnit\Framework\TestCase;

tests/Tool/Validator/UriValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tool\Validator;
5+
namespace JsonSchema\Tests\Tool\Validator;
66

77
use JsonSchema\Tool\Validator\UriValidator;
88
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)