Skip to content

Commit

Permalink
Update all non-major dependencies (#31)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
renovate[bot] and Slamdunk authored Jun 17, 2024
1 parent d728a7a commit c751b81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"php": "~8.2.0 || ~8.3.0",
"ext-mbstring": "*",
"ext-tokenizer": "*",
"friendsofphp/php-cs-fixer": "^3.58.1"
"friendsofphp/php-cs-fixer": "^3.59.3"
},
"require-dev": {
"phpstan/phpstan": "^1.11.4",
"phpstan/phpstan-phpunit": "^1.4.0",
"phpunit/phpunit": "^11.2.1"
"phpunit/phpunit": "^11.2.2"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions lib/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ final class Config extends PhpCsFixerConfig
'single_line_throw' => false,
'space_after_semicolon' => true,
'static_lambda' => false,
'string_implicit_backslashes' => ['single_quoted' => 'escape'],
'unary_operator_spaces' => false,
'use_arrow_functions' => false,
];
Expand Down
2 changes: 1 addition & 1 deletion lib/FinalInternalClassFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private static function isDoctrineEntity(Tokens $tokens, int $classIndex): bool
for ($index = $attributeOpenIndex; $index < $classIndex; ++$index) {
$content .= $tokens[$index]->getContent();
}
if (1 === \preg_match(\sprintf('/^#\[%s/', self::REGEX), $content)) {
if (1 === \preg_match(\sprintf('/^#\\[%s/', self::REGEX), $content)) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/FunctionReferenceSpaceFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static function provideCases(): array
$use = \str_replace(' = array()', '', $use);
$use = \str_replace('$array', '$secondArray', $use);

$invariant = \PHP_EOL . \preg_replace('/\s+/', ' ', '
$invariant = \PHP_EOL . \preg_replace('/\\s+/', ' ', '
$var =& $var;
$var =& $var;
$var =&$var;
Expand Down

0 comments on commit c751b81

Please sign in to comment.