8000 styles: Update to PHP-CS-Fixer 3.52.0 by theofidry · Pull Request #1929 · infection/infection · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

styles: Update to PHP-CS-Fixer 3.52.0 #1929

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

Merged
merged 5 commits into from
Mar 19, 2024
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
55 changes: 33 additions & 22 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,38 @@
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'blank_line_before_statement' => [
'statements' => [
'break',
'continue',
'declare',
'do',
'for',
'foreach',
'if',
'include',
'include_once',
'require',
'require_once',
'return',
'switch',
'throw',
'try',
'while',
'yield',
],
],
// TODO: enable
'array_indentation' => false,
'blank_line_before_statement' => false,
// TODO: enable back
// 'blank_line_before_statement' => [
// 'statements' => [
// 'break',
// 'continue',
// 'declare',
// 'do',
// 'for',
// 'foreach',
// 'if',
// 'include',
// 'include_once',
// 'require',
// 'require_once',
// 'return',
// 'switch',
// 'throw',
// 'try',
// 'while',
// 'yield',
// ],
// ],
'blank_line_between_import_groups' => false,
'compact_nullable_typehint' => true,
'concat_space' => ['spacing' => 'one'],
'fully_qualified_strict_types' => true,
// TODO: enable back
'fully_qualified_strict_types' => false,
// TODO: enable
'get_class_to_class_keyword' => false,
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
Expand All @@ -120,6 +127,8 @@
'syntax' => 'short',
],
'logical_operators' => true,
// TODO: enable
'modernize_strpos' => false,
'native_constant_invocation' => true,
'native_function_invocation' => [
'include' => ['@internal'],
Expand All @@ -131,6 +140,8 @@
'no_useless_else' => true,
'no_useless_return' => true,
'nullable_type_declaration_for_default_null_value' => true,
// TODO: enable
'operator_linebreak' => false,
'ordered_class_elements' => true,
'ordered_imports' => true,
'ordered_interfaces' => true,
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BOX=./.tools/box
BOX_URL="https://github.com/humbug/box/releases/download/4.5.1/box.phar"

PHP_CS_FIXER=./.tools/php-cs-fixer
PHP_CS_FIXER_URL="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.16.0/php-cs-fixer.phar"
PHP_CS_FIXER_URL="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.52.0/php-cs-fixer.phar"
PHP_CS_FIXER_CACHE=.php_cs.cache

PHPSTAN=./vendor/bin/phpstan
Expand Down
2 changes: 2 additions & 0 deletions bin/infection
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

declare(strict_types=1);

// Disable strict types for now: https://github.com/infection/infection/pull/720#issuecomment-506546284

use Infection\Console\Application;
Expand Down
0