Skip to content

Commit f7b5c72

Browse files
committed
CS
1 parent ed2b689 commit f7b5c72

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
}
7171
},
7272
"scripts": {
73-
"phpstan": "php -d memory_limit=3G vendor/bin/phpstan analyse src -c phpstan.neon --level=7 --no-progress -vvv",
73+
"phpstan": "php -d memory_limit=3G vendor/bin/phpstan analyse src -c phpstan.neon --no-progress -vvv",
7474
"require-checker": "composer-require-checker check --config-file=composer-require-checker.json",
7575
"test": "phpunit",
7676
"csfix": "php-cs-fixer fix src/ && php-cs-fixer fix tests/",

phpstan.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
parameters:
2+
level: 7
3+
inferPrivatePropertyTypeFromConstructor: true
24
ignoreErrors:
35
- "#Method JsonSerializable::jsonSerialize\\(\\) invoked with 1 parameter, 0 required.#"
46
- "#Method .*::.* should return .* but returns .*TheCodingMachine\\\\TDBM\\\\AbstractTDBMObject#"
@@ -8,13 +10,13 @@ parameters:
810
- "#Call to an undefined method object::#"
911
- "#expects TheCodingMachine\\\\TDBM\\\\AbstractTDBMObject, object given.#"
1012
- "#should return array<TheCodingMachine\\\\TDBM\\\\AbstractTDBMObject> but returns array<int, object>#"
11-
- "#expects array<string>, array<int, int|string> given.#"
13+
#- "#expects array<string>, array<int, int|string> given.#"
1214
- "/Parameter #. \\$types of method Doctrine\\\\DBAL\\\\Connection::.*() expects array<int|string>, array<int, Doctrine\\\\DBAL\\\\Types\\\\Type> given./"
1315
- "#Method TheCodingMachine\\\\TDBM\\\\Schema\\\\ForeignKey::.*() should return .* but returns array<string>|string.#"
1416
-
1517
message: '#Result of && is always false.#'
1618
path: src/Test/Dao/Bean/Generated/ArticleBaseBean.php
17-
reportUnmatchedIgnoredErrors: false
19+
#reportUnmatchedIgnoredErrors: false
1820
includes:
1921
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
2022

tests/QueryFactory/FindObjectsFromRawSqlQueryFactoryTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
class FindObjectsFromRawSqlQueryFactoryTest extends TDBMAbstractServiceTest
1010
{
11-
1211
public function testGetSubQueryColumnDescriptors(): void
1312
{
1413
$queryFactory = new FindObjectsFromRawSqlQueryFactory($this->tdbmService, $this->tdbmService->getConnection()->getSchemaManager()->createSchema(), 'country', 'SELECT country.* FROM country');
@@ -21,6 +20,5 @@ public function testGetMagicSqlSubQuery(): void
2120
$queryFactory = new FindObjectsFromRawSqlQueryFactory($this->tdbmService, $this->tdbmService->getConnection()->getSchemaManager()->createSchema(), 'country', 'SELECT country.* FROM country');
2221
$this->expectException(TDBMException::class);
2322
$queryFactory->getMagicSqlSubQuery();
24-
2523
}
2624
}

0 commit comments

Comments
 (0)