From d9726349ff9417f0cd06024c438bf7f866c0a069 Mon Sep 17 00:00:00 2001 From: yaozm Date: Fri, 10 May 2024 18:31:59 +0800 Subject: [PATCH 1/9] chore(release): 2.8.0 --- CHANGELOG.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab5ee2e..ad6bb1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ All notable changes to this project will be documented in this file. ## [Unreleased] + +## [2.8.0] - 2024-05-10 +### Feat +- **WPush:** Add WPush package with Authenticator, Client, Message classes and README.md file +- **tests:** add ClientTest for WPush + + ## [2.7.0] - 2024-05-10 ### Docs @@ -829,7 +836,8 @@ All notable changes to this project will be documented in this file. - Finish tests -[Unreleased]: https://github.com/guanguans/notify/compare/2.7.0...HEAD +[Unreleased]: https://github.com/guanguans/notify/compare/2.8.0...HEAD +[2.8.0]: https://github.com/guanguans/notify/compare/2.7.0...2.8.0 [2.7.0]: https://github.com/guanguans/notify/compare/2.6.1...2.7.0 [2.6.1]: https://github.com/guanguans/notify/compare/2.6.0...2.6.1 [2.6.0]: https://github.com/guanguans/notify/compare/2.5.1...2.6.0 From 5b56da66e1599ab8e9704d64d2b7073a3c03420f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 22:04:07 +0000 Subject: [PATCH 2/9] chore(deps): bump trufflesecurity/trufflehog from 3.75.1 to 3.76.0 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.75.1 to 3.76.0. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.75.1...v3.76.0) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index bd9f9e0..e5052a2 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.75.1 + uses: trufflesecurity/trufflehog@v3.76.0 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From 6ec330697e927fa3263de7a99568e4308181c568 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 15 May 2024 21:17:36 +0000 Subject: [PATCH 3/9] chore(deps): bump trufflesecurity/trufflehog from 3.76.0 to 3.76.1 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.76.0 to 3.76.1. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.76.0...v3.76.1) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index e5052a2..05924fb 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.76.0 + uses: trufflesecurity/trufflehog@v3.76.1 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From 43dbeb5554a4fff831890fd519327a58bcc93b5e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 21:40:59 +0000 Subject: [PATCH 4/9] chore(deps): bump trufflesecurity/trufflehog from 3.76.1 to 3.76.2 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.76.1 to 3.76.2. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.76.1...v3.76.2) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index 05924fb..64d8088 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.76.1 + uses: trufflesecurity/trufflehog@v3.76.2 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From acf9836da813fa5adb79f947c42497c5002bdc3a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 21:47:59 +0000 Subject: [PATCH 5/9] chore(deps): bump trufflesecurity/trufflehog from 3.76.2 to 3.76.3 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.76.2 to 3.76.3. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.76.2...v3.76.3) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index 64d8088..1725f0c 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.76.2 + uses: trufflesecurity/trufflehog@v3.76.3 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From 453b00315154c7ac755443cd4e4e370a1d2aa9e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 21:31:01 +0000 Subject: [PATCH 6/9] chore(deps): bump trufflesecurity/trufflehog from 3.76.3 to 3.77.0 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.76.3 to 3.77.0. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.76.3...v3.77.0) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index 1725f0c..8962e45 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.76.3 + uses: trufflesecurity/trufflehog@v3.77.0 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From 63a28062a9556a0640d10a49626a9a5127d8f99f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:02:42 +0000 Subject: [PATCH 7/9] chore(deps): bump trufflesecurity/trufflehog from 3.77.0 to 3.78.0 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.77.0 to 3.78.0. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.77.0...v3.78.0) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index 8962e45..b2548e1 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.77.0 + uses: trufflesecurity/trufflehog@v3.78.0 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From 4375ede12982c512c64f9a4341010fc74358ef9e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 21:08:59 +0000 Subject: [PATCH 8/9] chore(deps): bump trufflesecurity/trufflehog from 3.78.0 to 3.78.1 Bumps [trufflesecurity/trufflehog](https://github.com/trufflesecurity/trufflehog) from 3.78.0 to 3.78.1. - [Release notes](https://github.com/trufflesecurity/trufflehog/releases) - [Changelog](https://github.com/trufflesecurity/trufflehog/blob/main/.goreleaser.yml) - [Commits](https://github.com/trufflesecurity/trufflehog/compare/v3.78.0...v3.78.1) --- updated-dependencies: - dependency-name: trufflesecurity/trufflehog dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/secret-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/secret-check.yml b/.github/workflows/secret-check.yml index b2548e1..df13134 100644 --- a/.github/workflows/secret-check.yml +++ b/.github/workflows/secret-check.yml @@ -12,7 +12,7 @@ jobs: # ref: ${{ github.ref_name }} fetch-depth: 0 - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@v3.78.0 + uses: trufflesecurity/trufflehog@v3.78.1 with: # path: ./ # base: ${{ github.event.repository.default_branch }} From d2daade2a5f848b491249fb8f55fb0a35d21c2fd Mon Sep 17 00:00:00 2001 From: yaozm Date: Thu, 13 Jun 2024 10:03:06 +0800 Subject: [PATCH 9/9] build(php-cs-fixer): Add parallel config support - Added support for parallel config in the php-cs-fixer - Updated composer.json dependencies versions --- .php-cs-fixer-dist.php | 422 ----------------------------------------- .php-cs-fixer.php | 2 + composer.json | 10 +- 3 files changed, 7 insertions(+), 427 deletions(-) delete mode 100644 .php-cs-fixer-dist.php diff --git a/.php-cs-fixer-dist.php b/.php-cs-fixer-dist.php deleted file mode 100644 index 1d3ceef..0000000 --- a/.php-cs-fixer-dist.php +++ /dev/null @@ -1,422 +0,0 @@ - - * - * For the full copyright and license information, please view - * the LICENSE file that was distributed with this source code. - * - * @see https://github.com/guanguans/notify - */ - -use PhpCsFixer\Config; -use PhpCsFixer\Finder; - -$header = <<<'HEADER' - This file is part of the guanguans/notify. - - (c) guanguans - - This source file is subject to the MIT license that is bundled. - HEADER; - -$finder = Finder::create() - ->in([ - // __DIR__.'/config', - __DIR__.'/src', - __DIR__.'/tests', - ]) - ->exclude([ - '.github/', - 'doc/', - 'docs/', - 'vendor/', - '__snapshots__/', - ]) - ->append(glob(__DIR__.'/{*,.*}.php', \GLOB_BRACE)) - ->append([ - __DIR__.'/composer-updater', - __DIR__.'/platform-lint', - ]) - ->notPath([ - 'bootstrap/*', - 'storage/*', - 'resources/view/mail/*', - 'vendor/*', - ]) - ->name('*.php') - ->notName([ - '*.blade.php', - // '_ide_helper.php', - ]) - ->ignoreDotFiles(true) - ->ignoreVCS(true); - -return (new Config) - ->setFinder($finder) - ->setRiskyAllowed(true) - ->setUsingCache(false) - ->setCacheFile(__DIR__.'/.php-cs-fixer.cache') - ->registerCustomFixers(new PhpCsFixerCustomFixers\Fixers) - ->setRules([ - '@PHP70Migration' => true, - '@PHP70Migration:risky' => true, - '@PHP71Migration' => true, - '@PHP71Migration:risky' => true, - '@PHP73Migration' => true, - '@PHP74Migration' => true, - '@PHP74Migration:risky' => true, - // '@PHP80Migration' => true, - // '@PHP80Migration:risky' => true, - // '@PHP81Migration' => true, - // '@PHP82Migration' => true, - - // '@PHPUnit75Migration:risky' => true, - // '@PHPUnit84Migration:risky' => true, - // '@PHPUnit100Migration:risky' => true, - - // '@DoctrineAnnotation' => true, - '@PhpCsFixer' => true, - '@PhpCsFixer:risky' => true, - - // alias - // 'mb_str_functions' => true, - - // array_notation - - // basic - 'braces_position' => [ - 'allow_single_line_anonymous_functions' => true, - 'allow_single_line_empty_anonymous_classes' => true, - 'anonymous_classes_opening_brace' => 'same_line', - 'anonymous_functions_opening_brace' => 'same_line', - 'classes_opening_brace' => 'next_line_unless_newline_at_signature_end', - 'control_structures_opening_brace' => 'same_line', - 'functions_opening_brace' => 'next_line_unless_newline_at_signature_end', - ], - 'no_multiple_statements_per_line' => true, - - // casing - // cast_notation - - // class_notation - 'final_class' => false, - 'final_internal_class' => false, - 'final_public_method_for_abstract_class' => false, - 'ordered_class_elements' => [ - 'order' => [ - 'use_trait', - 'case', - - 'constant_public', - 'constant_protected', - 'constant_private', - - 'property_public', - 'property_protected', - 'property_private', - - 'construct', - 'destruct', - 'magic', - 'phpunit', - - 'method_public', - 'method_protected', - 'method_private', - ], - 'sort_algorithm' => 'none', - ], - 'ordered_interfaces' => [ - 'direction' => 'ascend', - 'order' => 'alpha', - ], - 'self_static_accessor' => true, - - // class_usage - 'date_time_immutable' => true, - - // comment - // 'header_comment' => [ - // 'header' => $header, - // 'comment_type' => 'PHPDoc', - // 'location' => 'after_declare_strict', - // 'separate' => 'both', - // ], - - // constant_notation - - // control_structure - 'control_structure_braces' => true, - 'control_structure_continuation_position' => [ - 'position' => 'same_line', - ], - 'empty_loop_condition' => [ - 'style' => 'for', - ], - 'simplified_if_return' => true, - - // doctrine_annotation - - // function_notation - 'date_time_create_from_format_call' => true, - 'native_function_invocation' => [ - 'exclude' => [], - 'include' => ['@compiler_optimized', 'is_scalar'], - 'scope' => 'namespaced', - 'strict' => true, - ], - 'nullable_type_declaration_for_default_null_value' => [ - 'use_nullable_type_declaration' => true, - ], - 'phpdoc_to_param_type' => [ - 'scalar_types' => true, - ], - 'phpdoc_to_property_type' => [ - 'scalar_types' => true, - ], - 'phpdoc_to_return_type' => [ - 'scalar_types' => true, - ], - 'regular_callable_call' => true, - 'single_line_throw' => false, - 'static_lambda' => false, // pest - - // import - 'group_import' => false, - - // language_construct - 'declare_parentheses' => true, - - // list_notation - - // namespace_notation - 'blank_lines_before_namespace' => true, - - // naming - - // operator - 'logical_operators' => false, - 'no_useless_concat_operator' => [ - 'juggle_simple_strings' => true, - ], - 'not_operator_with_successor_space' => true, - - // php_tag - - // php_unit - 'php_unit_size_class' => [ - 'group' => 'small', - ], - 'php_unit_test_case_static_method_calls' => [ - 'call_type' => 'this', - 'methods' => [], - ], - 'php_unit_test_class_requires_covers' => false, - 'php_unit_data_provider_name' => true, - 'php_unit_data_provider_return_type' => true, - - // phpdoc - 'phpdoc_align' => [ - 'align' => 'left', - 'tags' => [ - 'method', - 'param', - 'property', - 'return', - 'throws', - 'type', - 'var', - ], - ], - 'general_phpdoc_annotation_remove' => [ - 'annotations' => [ - 'package', - 'subpackage', - ], - 'case_sensitive' => false, - ], - 'phpdoc_line_span' => [ - 'const' => null, - 'method' => 'multi', - 'property' => null, - ], - 'phpdoc_no_empty_return' => false, - 'phpdoc_summary' => false, - 'phpdoc_tag_casing' => [ - 'tags' => [ - 'inheritDoc', - ], - ], - // 'phpdoc_to_comment' => [ - // 'ignored_tags' => [ - // 'lang', - // 'noinspection', - // 'var', - // 'see', - // ], - // ], - 'phpdoc_to_comment' => false, - 'phpdoc_param_order' => true, - 'phpdoc_no_alias_tag' => [ - 'replacements' => [ - 'link' => 'see', - 'type' => 'var', - ], - ], - 'phpdoc_array_type' => true, - - // return_notation - 'simplified_null_return' => true, - - // semicolon - 'multiline_whitespace_before_semicolons' => [ - 'strategy' => 'no_multi_line', - ], - - // strict - 'declare_strict_types' => true, - - // string_notation - 'explicit_string_variable' => false, - - // whitespace - 'blank_line_before_statement' => [ - 'statements' => [ - 'break', - // 'case', - 'continue', - 'declare', - // 'default', - 'exit', - 'goto', - 'include', - 'include_once', - 'phpdoc', - 'require', - 'require_once', - 'return', - 'switch', - 'throw', - 'try', - 'yield', - 'yield_from', - ], - ], - 'new_with_parentheses' => [ - 'anonymous_class' => false, - 'named_class' => false, - ], - 'statement_indentation' => true, - 'global_namespace_import' => [ - 'import_classes' => false, - 'import_constants' => false, - 'import_functions' => false, - ], - 'fully_qualified_strict_types' => [ - 'import_symbols' => false, - 'leading_backslash_in_global_namespace' => false, - 'phpdoc_tags' => [ - // 'param', - // 'phpstan-param', - // 'phpstan-property', - // 'phpstan-property-read', - // 'phpstan-property-write', - // 'phpstan-return', - // 'phpstan-var', - // 'property', - // 'property-read', - // 'property-write', - // 'psalm-param', - // 'psalm-property', - // 'psalm-property-read', - // 'psalm-property-write', - // 'psalm-return', - // 'psalm-var', - // 'return', - // 'see', - // 'throws', - // 'var', - ], - ], - 'class_definition' => [ - 'inline_constructor_arguments' => false, - 'space_before_parenthesis' => false, - ], - - // https://github.com/kubawerlos/php-cs-fixer-custom-fixers - PhpCsFixerCustomFixers\Fixer\CommentSurroundedBySpacesFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\CommentedOutFunctionFixer::name() => [ - 'functions' => ['print_r', 'var_dump', 'var_export'], - ], - // PhpCsFixerCustomFixers\Fixer\ConstructorEmptyBracesFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\DataProviderNameFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\DataProviderReturnTypeFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\DeclareAfterOpeningTagFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\EmptyFunctionBodyFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\IssetToArrayKeyExistsFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\MultilineCommentOpeningClosingAloneFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer::name() => [ - // 'minimum_number_of_parameters' => 5, - // 'keep_blank_lines' => false, - // ], - // PhpCsFixerCustomFixers\Fixer\NoCommentedOutCodeFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoDoctrineMigrationsGeneratedCommentFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoDuplicatedArrayKeyFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoDuplicatedImportsFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoImportFromGlobalNamespaceFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoLeadingSlashInGlobalNamespaceFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\NoNullableBooleanTypeFixer::name() => false, - PhpCsFixerCustomFixers\Fixer\NoPhpStormGeneratedCommentFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\NoReferenceInFunctionDefinitionFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoSuperfluousConcatenationFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoTrailingCommaInSinglelineFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoUselessDirnameCallFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoUselessDoctrineRepositoryCommentFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoUselessParenthesisFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\NoUselessStrlenFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\NumericLiteralSeparatorFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpUnitAssertArgumentsOrderFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpUnitDedicatedAssertFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpUnitNoUselessReturnFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpdocNoIncorrectVarAnnotationFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpdocNoSuperfluousParamFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\PhpdocOnlyAllowedAnnotationsFixer::name() => [ - // 'elements' => [ - // 'covers', - // 'coversNothing', - // 'dataProvider', - // 'deprecated', - // 'implements', - // 'internal', - // 'method', - // 'noinspection', - // 'param', - // 'property', - // 'requires', - // 'return', - // 'runInSeparateProcess', - // 'see', - // 'var', - // ], - // ], - // PhpCsFixerCustomFixers\Fixer\PhpdocParamOrderFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpdocParamTypeFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpdocSelfAccessorFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpdocSingleLineVarFixer::name() => false, - // PhpCsFixerCustomFixers\Fixer\PhpdocTypesCommaSpacesFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PhpdocTypesTrimFixer::name() => true, - // PhpCsFixerCustomFixers\Fixer\PhpdocVarAnnotationToAssertFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer::name() => [ - 'promote_only_existing_properties' => false, - ], - // PhpCsFixerCustomFixers\Fixer\ReadonlyPromotedPropertiesFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\SingleSpaceAfterStatementFixer::name() => [ - 'allow_linebreak' => false, - ], - PhpCsFixerCustomFixers\Fixer\SingleSpaceBeforeStatementFixer::name() => true, - PhpCsFixerCustomFixers\Fixer\StringableInterfaceFixer::name() => true, - ]); diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 9b5ff10..d5b43a8 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -14,6 +14,7 @@ use Ergebnis\License; use Ergebnis\PhpCsFixer\Config; use PhpCsFixer\Finder; +use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; $license = License\Type\MIT::text( __DIR__.'/LICENSE', @@ -212,4 +213,5 @@ ) ->setRiskyAllowed(true) ->setUsingCache(true) + ->setParallelConfig(ParallelConfigFactory::detect()) ->setCacheFile(__DIR__.'/build/php-cs-fixer/.php-cs-fixer.cache'); diff --git a/composer.json b/composer.json index a6b2fbe..91412c4 100644 --- a/composer.json +++ b/composer.json @@ -88,7 +88,7 @@ "ergebnis/license": "^2.4", "ergebnis/php-cs-fixer-config": "dev-main", "ergebnis/rector-rules": "^1.0", - "friendsofphp/php-cs-fixer": "^3.56", + "friendsofphp/php-cs-fixer": "^3.58", "guanguans/ai-commit": "dev-main", "guanguans/monorepo-builder-worker": "^1.4", "icanhazstring/composer-unused": "^0.8", @@ -100,10 +100,10 @@ "pestphp/pest": "^1.23 || ^2.0", "pestphp/pest-plugin-faker": "^1.0 || ^2.0", "php-mock/php-mock-phpunit": "^2.10", - "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-deprecation-rules": "^1.1", - "rector/rector": "^1.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^1.11", + "phpstan/phpstan-deprecation-rules": "^1.2", + "rector/rector": "^1.1", "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0", "vimeo/psalm": "^5.24" },