Skip to content

Commit

Permalink
Bugfix for missing type highlight in property set hook
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed May 15, 2024
1 parent 7eb7f96 commit ac52f93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.4.3

- Bugfix for missing type highlight in property set hook

## 2.4.2

- Improve Ellison line splitting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

#[PatternTest('set (string $value', 'string')]
#[PatternTest('set(string $value', 'string')]
#[PatternTest('set(Author $value', 'Author')]
final readonly class PropertyHookSetParameterTypePattern implements Pattern
{
use IsPattern;

public function getPattern(): string
{
return 'set\s*\((?<match>string)';
return 'set\s*\((?<match>[\w]+)';
}

public function getTokenType(): TokenType
Expand Down

0 comments on commit ac52f93

Please sign in to comment.