Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PHPStan and PHP-CS-Fixer versions #1

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cs.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'psr4' => true,
'psr_autoloading' => true,
// custom rules
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'], // psr-5
'phpdoc_to_comment' => false,
Expand All @@ -21,7 +21,7 @@
'declare_equal_normalize' => ['space' => 'single'],
'increment_style' => ['style' => 'post'],
'list_syntax' => ['syntax' => 'short'],
'no_short_echo_tag' => true,
'echo_tag_syntax' => ['format' => 'long'],
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_align' => false,
'phpdoc_no_empty_return' => false,
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"php": "^7.3 || ^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2",
"friendsofphp/php-cs-fixer": "^3",
"overtrue/phplint": "^2",
"phpstan/phpstan": "0.*",
"phpstan/phpstan": "^1",
"phpunit/phpunit": "^9",
"squizlabs/php_codesniffer": "^3"
},
Expand All @@ -28,7 +28,7 @@
"@phpstan",
"@test:coverage"
],
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --diff-format=udiff --config=.cs.php",
"cs:check": "php-cs-fixer fix --dry-run --format=txt --verbose --diff --config=.cs.php",
"cs:fix": "php-cs-fixer fix --config=.cs.php",
"lint": "phplint ./ --exclude=vendor --no-interaction --no-cache",
"phpstan": "phpstan analyse -c phpstan.neon --no-progress --ansi",
Expand Down
4 changes: 3 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ parameters:
level: max
paths:
- src
- tests
- tests
ignoreErrors:
- '#Cannot cast mixed to int.#'
4 changes: 2 additions & 2 deletions src/Flag/RarVolumeHeaderFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ final class RarVolumeHeaderFlag
public const SUB_HEAD = 0x77;
public const PROTECT_HEAD = 0x78;
public const SIGN_HEAD = 0x79;
public const NEWSUB_HEAD = 0x7a;
public const ENDARC_HEAD = 0x7b; // 123
public const NEWSUB_HEAD = 0x7A;
public const ENDARC_HEAD = 0x7B; // 123
}