Skip to content

Commit 33af1ad

Browse files
committed
fix
1 parent f60e3d2 commit 33af1ad

8 files changed

+18
-42
lines changed

src/QueryReflection/RuntimeConfiguration.php

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,37 +42,25 @@ final class RuntimeConfiguration
4242
/**
4343
* @var self::ERROR_MODE*
4444
*/
45-
private $errorMode = self::ERROR_MODE_DEFAULT;
45+
private string $errorMode = self::ERROR_MODE_DEFAULT;
4646

4747
/**
4848
* @var QueryReflector::FETCH_TYPE*
4949
*/
50-
private $defaultFetchMode = QueryReflector::FETCH_TYPE_BOTH;
50+
private int $defaultFetchMode = QueryReflector::FETCH_TYPE_BOTH;
5151

52-
/**
53-
* @var bool
54-
*/
55-
private $debugMode = false;
52+
private bool $debugMode = false;
5653

57-
/**
58-
* @var bool
59-
*/
60-
private $stringifyTypes = false;
54+
private bool $stringifyTypes = false;
6155

62-
/**
63-
* @var bool
64-
*/
65-
private $writableQueries = true;
56+
private bool $writableQueries = true;
6657

67-
/**
68-
* @var bool
69-
*/
70-
private $utilizeSqlAst = false;
58+
private bool $utilizeSqlAst = false;
7159

7260
/**
7361
* @var self::VALIDATION_MODE_*
7462
*/
75-
private $parameterTypeValidation = self::VALIDATION_MODE_LAX;
63+
private string $parameterTypeValidation = self::VALIDATION_MODE_LAX;
7664

7765
/**
7866
* @var bool|0|positive-int

src/Rules/DoctrineKeyValueStyleRule.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,9 @@ final class DoctrineKeyValueStyleRule implements Rule
3232
/**
3333
* @var array<array{string, string, list<int>}>
3434
*/
35-
private $classMethods;
35+
private array $classMethods;
3636

37-
/**
38-
* @var QueryReflection
39-
*/
40-
private $queryReflection;
37+
private ?QueryReflection $queryReflection = null;
4138

4239
/**
4340
* @param list<string> $classMethods

src/Rules/QueryPlanAnalyzerRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class QueryPlanAnalyzerRule implements Rule
2929
/**
3030
* @var list<string>
3131
*/
32-
private $classMethods;
32+
private array $classMethods;
3333

3434
/**
3535
* @param list<string> $classMethods

src/Rules/SyntaxErrorInDibiPreparedStatementMethodRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class SyntaxErrorInDibiPreparedStatementMethodRule implements Rule
3232
/**
3333
* @var list<string>
3434
*/
35-
private $classMethods;
35+
private array $classMethods;
3636

3737
/**
3838
* @param list<string> $classMethods

src/Rules/SyntaxErrorInPreparedStatementMethodRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class SyntaxErrorInPreparedStatementMethodRule implements Rule
2929
/**
3030
* @var list<string>
3131
*/
32-
private $classMethods;
32+
private array $classMethods;
3333

3434
/**
3535
* @param list<string> $classMethods

src/Rules/SyntaxErrorInQueryFunctionRule.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,9 @@ final class SyntaxErrorInQueryFunctionRule implements Rule
2525
/**
2626
* @var list<string>
2727
*/
28-
private $functionNames;
28+
private array $functionNames;
2929

30-
/**
31-
* @var ReflectionProvider
32-
*/
33-
private $reflectionProvider;
30+
private ReflectionProvider $reflectionProvider;
3431

3532
/**
3633
* @param list<string> $functionNames

src/Rules/SyntaxErrorInQueryMethodRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ final class SyntaxErrorInQueryMethodRule implements Rule
2323
/**
2424
* @var list<string>
2525
*/
26-
private $classMethods;
26+
private array $classMethods;
2727

2828
/**
2929
* @param list<string> $classMethods

src/SchemaReflection/Column.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,9 @@
1111
*/
1212
final class Column
1313
{
14-
/**
15-
* @var string
16-
*/
17-
private $name;
18-
19-
/**
20-
* @var Type
21-
*/
22-
private $type;
14+
private string $name;
15+
16+
private Type $type;
2317

2418
public function __construct(string $name, Type $type)
2519
{

0 commit comments

Comments
 (0)