From 09fb74213768f80e615bc783304bd0812fba6d46 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Sun, 4 Feb 2024 15:26:30 +0100 Subject: [PATCH] Fixes for php-cs-fixer v3.49 --- composer.json | 4 ++-- src/Config.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index d7fc731..ac03ff9 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ ], "require": { "php": "^8.1", - "friendsofphp/php-cs-fixer": "^3.47.1", - "kubawerlos/php-cs-fixer-custom-fixers": "^3.19.0" + "friendsofphp/php-cs-fixer": "^3.49.0", + "kubawerlos/php-cs-fixer-custom-fixers": "^3.20.0" }, "autoload": { "psr-4": { diff --git a/src/Config.php b/src/Config.php index 78d749f..87934ff 100644 --- a/src/Config.php +++ b/src/Config.php @@ -46,7 +46,6 @@ public function setRules(array $rules): ConfigInterface 'declare_strict_types' => false, 'echo_tag_syntax' => ['format' => 'short'], 'empty_loop_condition' => false, - 'escape_implicit_backslashes' => true, 'global_namespace_import' => [ 'import_constants' => true, 'import_functions' => true, @@ -94,6 +93,7 @@ public function setRules(array $rules): ConfigInterface 'single_line_empty_body' => true, 'statement_indentation' => false, 'static_lambda' => true, + 'string_implicit_backslashes' => ['single_quoted' => 'ignore'], 'trailing_comma_in_multiline' => [ 'after_heredoc' => true, 'elements' => ['arguments', 'arrays', 'match', 'parameters'],