File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 3
3
/failed-classes /
4
4
/vendor /
5
5
.idea
6
+ .phpunit.result.cache
6
7
composer.lock
Original file line number Diff line number Diff line change @@ -22,12 +22,16 @@ public function getClassName(
22
22
bool $ isMergeClass ,
23
23
string $ currentClassName = ''
24
24
): string {
25
+ $ json = $ isMergeClass && isset ($ schema ->getJson ()['propertySchema ' ])
26
+ ? $ schema ->getJson ()['propertySchema ' ]->getJson ()
27
+ : $ schema ->getJson ();
28
+
25
29
$ className = sprintf (
26
30
$ isMergeClass ? '%s_Merged_%s ' : '%s_%s ' ,
27
31
$ currentClassName ,
28
32
ucfirst (
29
- isset ($ schema -> getJson () ['$id ' ])
30
- ? str_replace ('# ' , '' , $ schema -> getJson () ['$id ' ])
33
+ isset ($ json ['$id ' ])
34
+ ? str_replace ('# ' , '' , $ json ['$id ' ])
31
35
: ($ propertyName . ($ currentClassName ? uniqid () : '' ))
32
36
)
33
37
);
You can’t perform that action at this time.
0 commit comments