Skip to content

Commit 4c3f7a9

Browse files
committed
Add directory exclusion into "override" generator
1 parent f505975 commit 4c3f7a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PhpStormMetadataGenerator/GenerateStructOverrides.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ class: new Name\FullyQualified($this->naming->getEntrypoint()),
214214

215215
foreach ($nodes as $node) {
216216
if ($node instanceof TypeDefinitionNode && $node->type instanceof RecordTypeNode) {
217+
if ($node->location->matches($this->excludes)) {
218+
continue;
219+
}
220+
217221
$arrayItems[] = new ArrayItem(
218222
value: new String_('\\' . $this->naming->getName(
219223
name: $node->name,

0 commit comments

Comments
 (0)