Skip to content

Commit c751b81

Browse files
Update all non-major dependencies (#31)
* Update all non-major dependencies | datasource | package | from | to | | ---------- | ------------------------- | ------ | ------ | | packagist | friendsofphp/php-cs-fixer | 3.58.1 | 3.59.3 | | packagist | phpunit/phpunit | 11.2.1 | 11.2.2 | * Always escape single quoted too --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Filippo Tessarotto <[email protected]>
1 parent d728a7a commit c751b81

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
"php": "~8.2.0 || ~8.3.0",
1414
"ext-mbstring": "*",
1515
"ext-tokenizer": "*",
16-
"friendsofphp/php-cs-fixer": "^3.58.1"
16+
"friendsofphp/php-cs-fixer": "^3.59.3"
1717
},
1818
"require-dev": {
1919
"phpstan/phpstan": "^1.11.4",
2020
"phpstan/phpstan-phpunit": "^1.4.0",
21-
"phpunit/phpunit": "^11.2.1"
21+
"phpunit/phpunit": "^11.2.2"
2222
},
2323
"autoload": {
2424
"psr-4": {

lib/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ final class Config extends PhpCsFixerConfig
6868
'single_line_throw' => false,
6969
'space_after_semicolon' => true,
7070
'static_lambda' => false,
71+
'string_implicit_backslashes' => ['single_quoted' => 'escape'],
7172
'unary_operator_spaces' => false,
7273
'use_arrow_functions' => false,
7374
];

lib/FinalInternalClassFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static function isDoctrineEntity(Tokens $tokens, int $classIndex): bool
8383
for ($index = $attributeOpenIndex; $index < $classIndex; ++$index) {
8484
$content .= $tokens[$index]->getContent();
8585
}
86-
if (1 === \preg_match(\sprintf('/^#\[%s/', self::REGEX), $content)) {
86+
if (1 === \preg_match(\sprintf('/^#\\[%s/', self::REGEX), $content)) {
8787
return true;
8888
}
8989

tests/FunctionReferenceSpaceFixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static function provideCases(): array
2626
$use = \str_replace(' = array()', '', $use);
2727
$use = \str_replace('$array', '$secondArray', $use);
2828

29-
$invariant = \PHP_EOL . \preg_replace('/\s+/', ' ', '
29+
$invariant = \PHP_EOL . \preg_replace('/\\s+/', ' ', '
3030
$var =& $var;
3131
$var =& $var;
3232
$var =&$var;

0 commit comments

Comments
 (0)