Skip to content

Commit

Permalink
Merge pull request #272 from passchn/patch-1
Browse files Browse the repository at this point in the history
Update PhpstormGenerator.php
  • Loading branch information
dereuromark authored May 5, 2022
2 parents dfd2eda + 9c0e782 commit 551004e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Generator/PhpstormGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public function generate() {
protected function build(array $map) {
$overrides = [];
foreach ($map as $directive) {
$overrides[] = $directive->build();
if (is_object($directive) && method_exists($directive, "build")) {
$overrides[] = $directive->build();
}
}
$overrides = implode(PHP_EOL . PHP_EOL, $overrides);

Expand Down

0 comments on commit 551004e

Please sign in to comment.