Skip to content

Commit a287338

Browse files
mbabkerfranmomu
authored andcommitted
Bump QA tools to latest
1 parent 8d658b4 commit a287338

File tree

3 files changed

+15
-20
lines changed

3 files changed

+15
-20
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
"doctrine/orm": "^2.14.0",
6161
"friendsofphp/php-cs-fixer": "^3.14.0",
6262
"nesbot/carbon": "^2.71 || ^3.0",
63-
"phpstan/phpstan": "^1.10.2",
64-
"phpstan/phpstan-doctrine": "^1.0",
65-
"phpstan/phpstan-phpunit": "^1.0",
63+
"phpstan/phpstan": "^1.11",
64+
"phpstan/phpstan-doctrine": "^1.4",
65+
"phpstan/phpstan-phpunit": "^1.4",
6666
"phpunit/phpunit": "^9.6",
67-
"rector/rector": "^0.19",
67+
"rector/rector": "^1.1",
6868
"symfony/console": "^5.4 || ^6.0 || ^7.0",
6969
"symfony/phpunit-bridge": "^6.0 || ^7.0",
7070
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"

rector.php

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,22 @@
1010
*/
1111

1212
use Rector\Config\RectorConfig;
13-
use Rector\Set\ValueObject\LevelSetList;
1413
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
14+
use Rector\ValueObject\PhpVersion;
1515

16-
return static function (RectorConfig $rectorConfig): void {
17-
$rectorConfig->paths([
16+
return RectorConfig::configure()
17+
->withPaths([
1818
__DIR__.'/src',
1919
__DIR__.'/tests',
2020
__DIR__.'/example',
21-
]);
22-
23-
$rectorConfig->sets([
24-
LevelSetList::UP_TO_PHP_74,
25-
]);
26-
27-
$rectorConfig->skip([
21+
])
22+
->withPhpVersion(PhpVersion::PHP_74)
23+
->withPhpSets()
24+
->withSkip([
2825
TypedPropertyFromAssignsRector::class => [
2926
__DIR__.'/src/Mapping/MappedEventSubscriber.php', // Rector is trying to set a type on the $annotationReader property which requires a union type, not supported on PHP 7.4
3027
__DIR__.'/tests/Gedmo/Wrapper/Fixture/Entity/CompositeRelation.php', // @todo: remove this when https://github.com/doctrine/orm/issues/8255 is solved
3128
],
32-
]);
33-
34-
$rectorConfig->importNames();
35-
$rectorConfig->importShortClasses(false);
36-
};
29+
])
30+
->withImportNames(true, true, false)
31+
;

tests/Gedmo/Sortable/SortableDocumentGroupTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private function populate(): void
175175
$birthdates = [
176176
new \DateTime(self::KID_DATE1),
177177
new \DateTime(self::KID_DATE2),
178-
];
178+
];
179179

180180
for ($i = 0; $i < 4; ++$i) {
181181
$kid = new Kid();

0 commit comments

Comments
 (0)