-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: psr/cache >=2.0 ломал поддержку PHP 8.0
Исправлено: - ограничение psr/cache: ^1.0 для поддержки PHP 8.0. Изменено: - незначительные изменения кода в связи с обнаруженными ошибками и предупреждениями от PHPStan и PhpStorm; - обновление friendsofphp/php-cs-fixer: с ^2.16 до ^3.0.
- Loading branch information
1 parent
a360dd7
commit 28a976f
Showing
7 changed files
with
74 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/.php_cs | ||
/.php_cs.cache | ||
/.php-cs-fixer.php | ||
/.php-cs-fixer.cache | ||
/.phpunit.result.cache | ||
/build/ | ||
/composer.lock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
|
||
return (new Config)->setUsingCache(true) | ||
->setRiskyAllowed(true) | ||
->setRules( | ||
[ | ||
'@PSR2' => true, | ||
'psr_autoloading' => true, | ||
'linebreak_after_opening_tag' => true, | ||
'multiline_whitespace_before_semicolons' => true, | ||
'no_php4_constructor' => true, | ||
'no_useless_else' => true, | ||
'ordered_imports' => true, | ||
'php_unit_construct' => true, | ||
'phpdoc_order' => true, | ||
'pow_to_exponentiation' => true, | ||
'random_api_migration' => true, | ||
'align_multiline_comment' => true, | ||
'phpdoc_types_order' => true, | ||
'no_null_property_initialization' => true, | ||
'no_unneeded_final_method' => true, | ||
'no_unneeded_curly_braces' => true, | ||
'no_superfluous_elseif' => true, | ||
'trailing_comma_in_multiline' => true, | ||
'no_unused_imports' => true, | ||
'include' => true, | ||
'array_syntax' => [ | ||
'syntax' => 'short', | ||
], | ||
] | ||
) | ||
->setFinder( | ||
(Finder::create())->in( | ||
[ | ||
__DIR__ . '/src/main', | ||
__DIR__ . '/src/test', | ||
] | ||
) | ||
->files() | ||
->name('*.php') | ||
); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters