Skip to content

Commit 794e07a

Browse files
authored
deps: bump rekapager (#32)
1 parent f839842 commit 794e07a

File tree

6 files changed

+70
-7
lines changed

6 files changed

+70
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 0.7.5
4+
5+
* deps: bump rekapager
6+
37
## 0.7.3
48

59
* build: exclude buggy `symfony/property-info`,

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"api-platform/core": "^3.2.12 || ^3.3",
2424
"doctrine/collections": "^2.2",
2525
"rekalogika/mapper": "^1.1",
26-
"rekalogika/rekapager-api-platform": "^0.15",
27-
"rekalogika/rekapager-doctrine-collections-adapter": "^0.15",
28-
"rekalogika/rekapager-doctrine-orm-adapter": "^0.15",
26+
"rekalogika/rekapager-api-platform": "^0.17",
27+
"rekalogika/rekapager-doctrine-collections-adapter": "^0.17",
28+
"rekalogika/rekapager-doctrine-orm-adapter": "^0.17",
2929
"symfony/dependency-injection": "^6.4 || ^7.0",
3030
"symfony/http-kernel": "^6.4 || ^7.0",
3131
"symfony/security-core": "^6.4 || ^7.0",

phpstan.neon.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ parameters:
99
checkInternalClassCaseSensitivity: true
1010
reportMaybesInPropertyPhpDocTypes: true
1111
treatPhpDocTypesAsCertain: false
12+
excludePaths:
13+
- tests/src/Factory
1214
includes:
1315
- vendor/phpstan/phpstan-phpunit/extension.neon
1416
- vendor/phpstan/phpstan-phpunit/rules.neon

rector.php

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector;
6+
use Rector\CodeQuality\Rector\If_\CombineIfRector;
7+
use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector;
8+
use Rector\CodingStyle\Rector\Catch_\CatchExceptionNameMatchingTypeRector;
9+
use Rector\CodingStyle\Rector\Use_\SeparateMultiUseImportsRector;
10+
use Rector\Config\RectorConfig;
11+
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
12+
use Rector\DeadCode\Rector\ClassMethod\RemoveUnusedPublicMethodParameterRector;
13+
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
14+
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
15+
use Rector\DeadCode\Rector\Node\RemoveNonExistingVarAnnotationRector;
16+
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
17+
use Rector\Php83\Rector\ClassMethod\AddOverrideAttributeToOverriddenMethodsRector;
18+
use Rector\Strict\Rector\Ternary\DisallowedShortTernaryRuleFixerRector;
19+
use Rector\ValueObject\PhpVersion;
20+
21+
return RectorConfig::configure()
22+
->withPhpVersion(PhpVersion::PHP_83)
23+
->withPaths([
24+
__DIR__ . '/src',
25+
__DIR__ . '/tests/bin',
26+
__DIR__ . '/tests/config',
27+
__DIR__ . '/tests/public',
28+
__DIR__ . '/tests/src',
29+
])
30+
->withPreparedSets(
31+
deadCode: true,
32+
codeQuality: true,
33+
codingStyle: true,
34+
typeDeclarations: true,
35+
privatization: true,
36+
instanceOf: true,
37+
strictBooleans: true,
38+
symfonyCodeQuality: true,
39+
doctrineCodeQuality: true,
40+
)
41+
->withPhpSets(php82: true)
42+
->withRules([
43+
AddOverrideAttributeToOverriddenMethodsRector::class,
44+
])
45+
->withSkip([
46+
// potential cognitive burden
47+
FlipTypeControlToUseExclusiveTypeRector::class,
48+
49+
// results in too long variables
50+
CatchExceptionNameMatchingTypeRector::class,
51+
52+
// makes code unreadable
53+
DisallowedShortTernaryRuleFixerRector::class,
54+
55+
// unsafe
56+
SeparateMultiUseImportsRector::class,
57+
]);

tests/src/Repository/BookRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* @extends ServiceEntityRepository<Book>
1313
*
1414
* @method Book|null find($id, $lockMode = null, $lockVersion = null)
15-
* @method Book|null findOneBy(array $criteria, array $orderBy = null)
15+
* @method Book|null findOneBy(array<string,mixed> $criteria, ?array<string,string> $orderBy = null)
1616
* @method Book[] findAll()
17-
* @method Book[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
17+
* @method Book[] findBy(array<string,mixed> $criteria, ?array<string,string> $orderBy = null, $limit = null, $offset = null)
1818
*/
1919
class BookRepository extends ServiceEntityRepository
2020
{

tests/src/Repository/ReviewRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* @extends ServiceEntityRepository<Review>
1313
*
1414
* @method Review|null find($id, $lockMode = null, $lockVersion = null)
15-
* @method Review|null findOneBy(array $criteria, array $orderBy = null)
15+
* @method Review|null findOneBy(array<string,mixed> $criteria, ?array<string,string> $orderBy = null)
1616
* @method Review[] findAll()
17-
* @method Review[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
17+
* @method Review[] findBy(array<string,mixed> $criteria, ?array<string,string> $orderBy = null, $limit = null, $offset = null)
1818
*/
1919
class ReviewRepository extends ServiceEntityRepository
2020
{

0 commit comments

Comments
 (0)