File tree 3 files changed +5
-5
lines changed
src/Symfony/Component/Serializer
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ class Since
31
31
public function __construct (array $ data )
32
32
{
33
33
if (!isset ($ data ['value ' ])) {
34
- throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" should be set. ' , \get_class ( $ this ) ));
34
+ throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" should be set. ' , static ::class ));
35
35
}
36
36
37
37
if (!\is_string ($ data ['value ' ]) || empty ($ data ['value ' ])) {
38
- throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" must be a non-empty string. ' , \get_class ( $ this ) ));
38
+ throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" must be a non-empty string. ' , static ::class ));
39
39
}
40
40
41
41
$ this ->version = $ data ['value ' ];
Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ class Until
31
31
public function __construct (array $ data )
32
32
{
33
33
if (!isset ($ data ['value ' ])) {
34
- throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" should be set. ' , \get_class ( $ this ) ));
34
+ throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" should be set. ' , static ::class ));
35
35
}
36
36
37
37
if (!\is_string ($ data ['value ' ]) || empty ($ data ['value ' ])) {
38
- throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" must be a non-empty string. ' , \get_class ( $ this ) ));
38
+ throw new InvalidArgumentException (sprintf ('Parameter of annotation "%s" must be a non-empty string. ' , static ::class ));
39
39
}
40
40
41
41
$ this ->version = $ data ['value ' ];
Original file line number Diff line number Diff line change 20
20
use Symfony \Component \Serializer \Tests \Fixtures \AbstractDummy ;
21
21
use Symfony \Component \Serializer \Tests \Fixtures \AbstractDummyFirstChild ;
22
22
use Symfony \Component \Serializer \Tests \Fixtures \AbstractDummySecondChild ;
23
- use Symfony \Component \Serializer \Tests \Fixtures \IgnoreDummy ;
24
23
use Symfony \Component \Serializer \Tests \Fixtures \AbstractDummyThirdChild ;
24
+ use Symfony \Component \Serializer \Tests \Fixtures \IgnoreDummy ;
25
25
use Symfony \Component \Serializer \Tests \Mapping \TestClassMetadataFactory ;
26
26
27
27
/**
You can’t perform that action at this time.
0 commit comments