From bb0b951bbe7c13880483119bb33b430a7cf70beb Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Mon, 1 Dec 2025 08:54:41 +0100 Subject: [PATCH] chore: update php-cs-fixer version to ^3.88 Replace 'visibility_required' with 'modifier_keywords' This rule is deprecated and will be removed in the next major version You should use modifier_keywords instead. https://cs.symfony.com/doc/rules/class_notation/visibility_required.html --- composer.json | 2 +- src/BedrockStreaming.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 41bba8c..5fe104b 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ ], "require": { "php": "^8.0", - "friendsofphp/php-cs-fixer": "^3.57" + "friendsofphp/php-cs-fixer": "^3.88" }, "autoload": { "psr-4": { diff --git a/src/BedrockStreaming.php b/src/BedrockStreaming.php index 6baab1b..9a2c5eb 100644 --- a/src/BedrockStreaming.php +++ b/src/BedrockStreaming.php @@ -50,7 +50,7 @@ public function getRules(): array 'no_whitespace_before_comma_in_array' => ['after_heredoc' => true], 'method_argument_space' => ['after_heredoc' => true, 'on_multiline' => 'ensure_fully_multiline', 'attribute_placement' => 'ignore'], 'heredoc_indentation' => true, - 'visibility_required' => true, + 'modifier_keywords' => ['elements' => ['const, 'method', 'property']], 'list_syntax' => true, 'ternary_to_null_coalescing' => true, ];