Skip to content

Commit

Permalink
chore(template): use parentschema instead of parent for invalid prope…
Browse files Browse the repository at this point in the history
…rties
  • Loading branch information
Orkuncakilkaya committed Aug 30, 2024
1 parent 9414784 commit dec411d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Model/RawDeviceAttributesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function getModelName(): string
*/
public function listInvalidProperties(): array
{
return parent::listInvalidProperties();
return [];
}

/**
Expand Down
8 changes: 4 additions & 4 deletions template/model_generic.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}}{{^pa
*/
public function listInvalidProperties(): array
{
{{#parent}}
{{#parentSchema}}
$invalidProperties = parent::listInvalidProperties();
{{/parent}}
{{^parent}}
{{/parentSchema}}
{{^parentSchema}}
$invalidProperties = [];
{{/parent}}
{{/parentSchema}}

{{#vars}}
{{#required}}
Expand Down

0 comments on commit dec411d

Please sign in to comment.