Skip to content

Commit

Permalink
Merge pull request #33 from kchung/update-deprecated-string-interpola…
Browse files Browse the repository at this point in the history
…tion

Update deprecated string interpolation usage
  • Loading branch information
timoschinkel authored Jul 11, 2024
2 parents 07736de + 056d99f commit 87506d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.2.2] - 2024-07-10
### Changed
- Update deprecated string interpolation usage

## [2.2.1] - 2024-04-26
### Changed
- Change behavior or `*` from `[^/]+` to `[^/]*` - [#31](https://github.com/timoschinkel/codeowners/pull/31)
Expand Down
2 changes: 1 addition & 1 deletion src/PatternMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function (Pattern $pattern) use ($filename): bool {
);

if (count($matchedPatterns) === 0) {
throw new NoMatchFoundException("Unable to find a pattern to match ${filename}");
throw new NoMatchFoundException("Unable to find a pattern to match {$filename}");
}

return end($matchedPatterns);
Expand Down

0 comments on commit 87506d0

Please sign in to comment.