Skip to content

Commit 49c78bf

Browse files
committed
native types
1 parent 1313ed2 commit 49c78bf

21 files changed

+35
-116
lines changed

src/Analyzer/QueryPlanResult.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ final class QueryPlanResult
1515
/**
1616
* @var array<string, self::*>
1717
*/
18-
private $result = [];
18+
private array $result = [];
1919

20-
/**
21-
* @var string
22-
*/
23-
private $simulatedQuery;
20+
private string $simulatedQuery;
2421

2522
public function __construct(string $simulatedQuery)
2623
{

src/Ast/ExpressionFinder.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616

1717
final class ExpressionFinder
1818
{
19-
/**
20-
* @var NodeFinder
21-
*/
22-
private $nodeFinder;
19+
private NodeFinder $nodeFinder;
2320

2421
public function __construct()
2522
{

src/Ast/PreviousConnectingVisitor.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@ final class PreviousConnectingVisitor extends NodeVisitorAbstract
1717
/**
1818
* @var list<Node>
1919
*/
20-
private $stack = [];
20+
private array $stack = [];
2121

22-
/**
23-
* @var ?Node
24-
*/
25-
private $previous;
22+
private ?Node $previous;
2623

2724
public function beforeTraverse(array $nodes)
2825
{

src/DbSchema/LazySchemaHasher.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ class LazySchemaHasher implements SchemaHasher
1111
*/
1212
private $schemaHasherFactory;
1313

14-
/**
15-
* @var SchemaHasher|null
16-
*/
17-
private $schemaHasher;
14+
private ?SchemaHasher $schemaHasher;
1815

1916
/**
2017
* @param callable():SchemaHasher $schemaHasherFactory

src/DbSchema/SchemaHasherMysql.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ final class SchemaHasherMysql implements SchemaHasher
1515
*/
1616
private $connection;
1717

18-
/**
19-
* @var string|null
20-
*/
21-
private $hash = null;
18+
private ?string $hash = null;
2219

2320
/**
2421
* @param PDO|mysqli $connection

src/Error.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
*/
1616
final class Error
1717
{
18-
/**
19-
* @var string
20-
*/
21-
private $message;
18+
private string $message;
2219

2320
/**
2421
* @var ErrorCodes

src/Extensions/MysqliEscapeStringDynamicReturnTypeExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525

2626
final class MysqliEscapeStringDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension, DynamicFunctionReturnTypeExtension
2727
{
28-
/**
29-
* @var PhpVersion
30-
*/
31-
private $phpVersion;
28+
private PhpVersion $phpVersion;
3229

3330
public function __construct(PhpVersion $phpVersion)
3431
{

src/Extensions/MysqliQueryDynamicReturnTypeExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@
2626

2727
final class MysqliQueryDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension, DynamicFunctionReturnTypeExtension
2828
{
29-
/**
30-
* @var PhpVersion
31-
*/
32-
private $phpVersion;
29+
private PhpVersion $phpVersion;
3330

3431
public function __construct(PhpVersion $phpVersion)
3532
{

src/Extensions/PdoPrepareDynamicReturnTypeExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222

2323
final class PdoPrepareDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
2424
{
25-
/**
26-
* @var PhpVersion
27-
*/
28-
private $phpVersion;
25+
private PhpVersion $phpVersion;
2926

3027
public function __construct(PhpVersion $phpVersion)
3128
{

src/Extensions/PdoQueryDynamicReturnTypeExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424

2525
final class PdoQueryDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension
2626
{
27-
/**
28-
* @var PhpVersion
29-
*/
30-
private $phpVersion;
27+
private PhpVersion $phpVersion;
3128

3229
public function __construct(PhpVersion $phpVersion)
3330
{

0 commit comments

Comments
 (0)