File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/Resources/config/packages Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ data_mapper:
2
2
approach : ' SETTER'
3
3
accessible : ' PUBLIC'
4
4
class_map :
5
- DateTimeInterface : DateTimeImmutable
5
+ DateTimeInterface : DateTime
Original file line number Diff line number Diff line change 5
5
namespace Wundii \DataMapper \SymfonyBundle \Tests ;
6
6
7
7
use DateTime ;
8
- use DateTimeImmutable ;
9
8
use DateTimeInterface ;
10
9
use PHPUnit \Framework \TestCase ;
11
10
use Symfony \Component \Config \Definition \Processor ;
@@ -38,7 +37,7 @@ public function testOverrideConfiguration(): void
38
37
'approach ' => 'CONSTRUCTOR ' ,
39
38
'accessible ' => 'PRIVATE ' ,
40
39
'class_map ' => [
41
- DateTimeInterface::class => DateTimeImmutable ::class,
40
+ DateTimeInterface::class => DateTime ::class,
42
41
'Foo ' => 'Bar ' ,
43
42
],
44
43
]];
@@ -47,7 +46,7 @@ public function testOverrideConfiguration(): void
47
46
48
47
$ this ->assertSame ('CONSTRUCTOR ' , $ config ['approach ' ]);
49
48
$ this ->assertSame ('PRIVATE ' , $ config ['accessible ' ]);
50
- $ this ->assertSame (DateTimeImmutable ::class, $ config ['class_map ' ][DateTimeInterface::class]);
49
+ $ this ->assertSame (DateTime ::class, $ config ['class_map ' ][DateTimeInterface::class]);
51
50
$ this ->assertSame ('Bar ' , $ config ['class_map ' ]['Foo ' ]);
52
51
}
53
52
}
You can’t perform that action at this time.
0 commit comments