We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e68549 + 4f41d19 commit e388018Copy full SHA for e388018
2 files changed
CHANGELOG.md
@@ -1,3 +1,9 @@
1
+1.3.1
2
+=====
3
+
4
+* (improvement) Make `SimpleNormalizer` non-readonly, to allow it to be mocked.
5
6
7
1.3.0
8
=====
9
src/Normalizer/SimpleNormalizer.php
@@ -9,15 +9,19 @@
use Torr\SimpleNormalizer\Exception\UnsupportedTypeException;
10
11
/**
12
+ * The normalizer to use in your app.
13
+ *
14
+ * Can't be readonly, as it needs to be mock-able.
15
16
* @final
17
*/
-readonly class SimpleNormalizer
18
+class SimpleNormalizer
19
{
20
21
* @param ServiceLocator<SimpleObjectNormalizerInterface> $objectNormalizers
22
23
public function __construct (
- private ServiceLocator $objectNormalizers,
24
+ private readonly ServiceLocator $objectNormalizers,
25
) {}
26
27
0 commit comments