Skip to content

Commit a0ca30f

Browse files
committed
Skip all table properties for CreateFromMixin detection
1 parent 6261f0b commit a0ca30f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/LuaFileParser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ private function parseMixinRegex(
114114
$funcInfo['classAnnotation'] .= ' : ' . $match['extends'][0];
115115
}
116116
if (
117-
!str_contains($match['name'][0], 'Mixin')
118-
&& (
119-
!str_contains($match['extends'][0], ',')
120-
|| str_contains($match['name'][0], '.')
117+
(
118+
!str_contains($match['name'][0], 'Mixin')
119+
&& !str_contains($match['extends'][0], ',')
121120
)
121+
|| str_contains($match['name'][0], '.')
122122
) {
123123
// skip global objects created from single mixins, and skip table properties
124124
continue;

0 commit comments

Comments
 (0)