Skip to content

Commit 4371ff3

Browse files
committed
Make phpstan happy
1 parent e42ab86 commit 4371ff3

5 files changed

Lines changed: 16 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 11.4.4, <small>(2025-09-19)</small>
2+
3+
#### Changes
4+
5+
* Prevent unnecessary warnings from PHPStan.
6+
7+
--------------------------------------------------------
8+
19
### 11.4.3, <small>(2025-09-16)</small>
210

311
#### Changes

src/mako/Mako.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class Mako
1515
/**
1616
* Mako version.
1717
*/
18-
public const string VERSION = '11.4.3';
18+
public const string VERSION = '11.4.4';
1919

2020
/**
2121
* Mako major version.
@@ -30,5 +30,5 @@ final class Mako
3030
/**
3131
* Mako patch version.
3232
*/
33-
public const int VERSION_PATCH = 3;
33+
public const int VERSION_PATCH = 4;
3434
}

src/mako/config/attributes/syringe/InjectConfig.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class InjectConfig implements InjectorInterface
2424
*/
2525
public function __construct(
2626
protected string $key,
27-
protected mixed $default,
28-
protected Config $config
27+
protected mixed $default = null,
28+
protected ?Config $config = null
2929
) {
3030
}
3131

src/mako/database/attributes/syringe/InjectConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class InjectConnection implements InjectorInterface
2424
* Constructor.
2525
*/
2626
public function __construct(
27-
protected ?string $connection,
28-
protected ConnectionManager $connectionManager
27+
protected ?string $connection = null,
28+
protected ?ConnectionManager $connectionManager = null
2929
) {
3030
}
3131

src/mako/redis/attributes/syringe/InjectConnection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class InjectConnection implements InjectorInterface
2424
* Constructor.
2525
*/
2626
public function __construct(
27-
protected ?string $connection,
28-
protected ConnectionManager $connectionManager
27+
protected ?string $connection = null,
28+
protected ?ConnectionManager $connectionManager = null
2929
) {
3030
}
3131

0 commit comments

Comments
 (0)