File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
test/solutions/php-gets-a-promotion Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ private function getPropertyType(\ReflectionProperty $prop): string
178
178
$ type = $ prop ->getType ();
179
179
180
180
if (null === $ type || !$ type instanceof \ReflectionNamedType) {
181
- throw new \ RuntimeException ( sprintf ( ' Invalid property "%s" ' , $ prop -> getName ())) ;
181
+ return '' ;
182
182
}
183
183
/** @var \ReflectionNamedType $type */
184
184
return $ type ->getName ();
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ class RowVisitorTypeMutated
4
+ {
5
+ protected string $ basePath ;
6
+
7
+ public function __construct (
8
+ private \Closure $ visitor ,
9
+ private \Stringable $ key ,
10
+ array $ config = []
11
+ ) {
12
+ $ this ->basePath = $ config ['basePath ' ] ?? '' ;
13
+ }
14
+
15
+ public function readCsv (string $ filePath )
16
+ {
17
+ // noop
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments