Skip to content

Commit

Permalink
Larastan level 2
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonferens committed Oct 21, 2024
1 parent e4ae1db commit ac87d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ parameters:
- src/

# Level 9 is the highest level
level: 1
level: 2

# ignoreErrors:
# - '#PHPDoc tag @var#'
Expand Down
6 changes: 3 additions & 3 deletions src/Generators/EnumGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ protected function contents(): string
->replace('{{ Path }}', $this->relativePath())
->replace('{{ Enum }}', class_basename($this->enum))
->replace('{{ Abstract }}', config('paragon.enums.abstract-class'))
->replace('{{ TypeDefinition }}', $code->type)
->replace('{{ Cases }}', $code->cases)
->replace('{{ Getters }}', $code->getters);
->replace('{{ TypeDefinition }}', $code->get('type'))
->replace('{{ Cases }}', $code->get('cases'))
->replace('{{ Getters }}', $code->get('getters'));
}

/**
Expand Down

0 comments on commit ac87d43

Please sign in to comment.