Skip to content

Commit c784826

Browse files
committed
Use php-cs-fixer v3
1 parent 3a7eea1 commit c784826

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.php_cs .php-cs-fixer.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
3+
$finder = (new PhpCsFixer\Finder())
44
->in(__DIR__)
55
->exclude(__DIR__.'/vendor')
66
;
7-
return PhpCsFixer\Config::create()
7+
8+
return (new PhpCsFixer\Config())
89
->setRules([
910
'@Symfony' => true,
10-
'array_syntax' => ['syntax' => 'short'],
1111
])
1212
->setFinder($finder)
1313
;

Validator/Constraint/Address.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*/
2323
class Address extends Constraint
2424
{
25-
const INVALID_ADDRESS_ERROR = '2243aa07-2ea7-4eb7-962c-6a9586593f2c';
25+
public const INVALID_ADDRESS_ERROR = '2243aa07-2ea7-4eb7-962c-6a9586593f2c';
2626

2727
protected static $errorNames = [
2828
self::INVALID_ADDRESS_ERROR => 'INVALID_ADDRESS_ERROR',

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"doctrine/cache": "~1.3",
2424
"doctrine/orm": "~2.8",
2525
"fakerphp/faker": "^1.9",
26-
"friendsofphp/php-cs-fixer": "^2.18",
26+
"friendsofphp/php-cs-fixer": "^3.0",
2727
"geocoder-php/algolia-places-provider": "^0.3",
2828
"geocoder-php/arcgis-online-provider": "^4.3",
2929
"geocoder-php/bing-maps-provider": "^4.2",

0 commit comments

Comments
 (0)