Skip to content

Commit 5ab3ff6

Browse files
committed
The $container ValidatorFactory constructor parameter no longer accepts null
1 parent 1d78524 commit 5ab3ff6

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 10.0.3 <small>(2023-11-27)</small>
2+
3+
#### Bugfixes
4+
5+
* The validation factory `$container` constructor parameter no longer accepts null.
6+
7+
--------------------------------------------------------
8+
19
### 10.0.2 <small>(2023-11-25)</small>
210

311
#### New

src/mako/Mako.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Mako
1717
*
1818
* @var string
1919
*/
20-
public const VERSION = '10.0.2';
20+
public const VERSION = '10.0.3';
2121

2222
/**
2323
* Mako major version.
@@ -38,5 +38,5 @@ class Mako
3838
*
3939
* @var int
4040
*/
41-
public const VERSION_PATCH = 2;
41+
public const VERSION_PATCH = 3;
4242
}

src/mako/validator/ValidatorFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class ValidatorFactory
2525
*/
2626
public function __construct(
2727
protected ?I18n $i18n = null,
28-
protected ?Container $container = null
28+
protected Container $container = new Container,
2929
) {
3030
}
3131

0 commit comments

Comments
 (0)