File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ public function __get(string $property) : mixed
108
108
);
109
109
}
110
110
111
+ public function __isset (string $ property ) : bool
112
+ {
113
+ return isset ($ this ->{$ property });
114
+ }
115
+
111
116
/**
112
117
* @param string $origin
113
118
*
Original file line number Diff line number Diff line change @@ -344,6 +344,14 @@ public function testMethodNotFound() : void
344
344
$ this ->collection ->bazz (); // @phpstan-ignore-line
345
345
}
346
346
347
+ public function testIsset () : void
348
+ {
349
+ self ::assertTrue (isset ($ this ->collection ->origin ));
350
+ self ::assertTrue (isset ($ this ->collection ->router ));
351
+ self ::assertTrue (isset ($ this ->collection ->routes ));
352
+ self ::assertFalse (isset ($ this ->collection ->notFoundAction ));
353
+ }
354
+
347
355
public function testGetProperties () : void
348
356
{
349
357
self ::assertIsString ($ this ->collection ->origin );
You can’t perform that action at this time.
0 commit comments