File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ class Route
43
43
public function __construct (array $ data )
44
44
{
45
45
if (isset ($ data ['localized_paths ' ])) {
46
- throw new \BadMethodCallException (sprintf ('Unknown property "localized_paths" on annotation "%s". ' , \get_class ( $ this ) ));
46
+ throw new \BadMethodCallException (sprintf ('Unknown property "localized_paths" on annotation "%s". ' , static ::class ));
47
47
}
48
48
49
49
if (isset ($ data ['value ' ])) {
@@ -74,7 +74,7 @@ public function __construct(array $data)
74
74
foreach ($ data as $ key => $ value ) {
75
75
$ method = 'set ' .str_replace ('_ ' , '' , $ key );
76
76
if (!method_exists ($ this , $ method )) {
77
- throw new \BadMethodCallException (sprintf ('Unknown property "%s" on annotation "%s". ' , $ key , \get_class ( $ this ) ));
77
+ throw new \BadMethodCallException (sprintf ('Unknown property "%s" on annotation "%s". ' , $ key , static ::class ));
78
78
}
79
79
$ this ->$ method ($ value );
80
80
}
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function load($resource, string $type = null)
52
52
$ loaderObject = $ this ->getObject ($ parts [0 ]);
53
53
54
54
if (!\is_object ($ loaderObject )) {
55
- throw new \TypeError (sprintf ('%s:getObject() must return an object: %s returned ' , \get_class ( $ this ) , \gettype ($ loaderObject )));
55
+ throw new \TypeError (sprintf ('%s:getObject() must return an object: %s returned ' , static ::class , \gettype ($ loaderObject )));
56
56
}
57
57
58
58
if (!\is_callable ([$ loaderObject , $ method ])) {
You can’t perform that action at this time.
0 commit comments