Skip to content

Commit b4152e5

Browse files
authored
Merge pull request #312 from norkunas/cs-fixer-3
Use php-cs-fixer v3
2 parents 3a7eea1 + c784826 commit b4152e5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)