Skip to content

Commit

Permalink
Merge #83
Browse files Browse the repository at this point in the history
83: Update php cs fixer 3 r=curquiza a=codedge

This PR adds support for the new [PHP CS Fixer 3](https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v3.0.0) version. 

Co-authored-by: Holger Lösken <hl@inquence.com>
  • Loading branch information
bors[bot] and Holger Lösken authored May 21, 2021
2 parents a45078f + 32d8e75 commit 9e34254
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
/vendor/
.phpunit.result.cache
/var/
.php_cs.cache
/tests/cache/blog.sqlite
.php-cs-fixer.cache
/tests/cache/blog.sqlite
File renamed without changes.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "^2.3",
"friendsofphp/php-cs-fixer": "^2.18",
"friendsofphp/php-cs-fixer": "^3.0",
"jms/serializer-bundle": "^3.0",
"nyholm/psr7": "^1.3",
"phpunit/phpunit": "^9.5",
Expand All @@ -52,7 +52,7 @@
},
"scripts": {
"test:unit": "phpunit --colors=always --verbose",
"lint:check": "php-cs-fixer fix -v --config=.php_cs.dist --using-cache=no --dry-run",
"lint:fix": "php-cs-fixer fix -v --config=.php_cs.dist --using-cache=no"
"lint:check": "php-cs-fixer fix -v --using-cache=no --dry-run",
"lint:fix": "php-cs-fixer fix -v --using-cache=no"
}
}
2 changes: 1 addition & 1 deletion src/MeiliSearchBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
*/
final class MeiliSearchBundle extends Bundle
{
const VERSION = '0.2.6';
public const VERSION = '0.2.6';
}
4 changes: 2 additions & 2 deletions src/Searchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
*/
final class Searchable
{
const NORMALIZATION_FORMAT = 'searchableArray';
const NORMALIZATION_GROUP = 'searchable';
public const NORMALIZATION_FORMAT = 'searchableArray';
public const NORMALIZATION_GROUP = 'searchable';
}
2 changes: 1 addition & 1 deletion tests/TestCase/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class SettingsTest extends BaseTest
{
const DEFAULT_RANKING_RULES
public const DEFAULT_RANKING_RULES
= [
'typo',
'words',
Expand Down

0 comments on commit 9e34254

Please sign in to comment.