From 056d99f73ede6b9eab3f8f8d5eb5ce10407d3826 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 10 Jul 2024 14:52:48 -0700 Subject: [PATCH] Update deprecated string interpolation usage --- CHANGELOG.md | 4 ++++ src/PatternMatcher.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9488c5e..d185f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/PatternMatcher.php b/src/PatternMatcher.php index 8dae8da..f995f15 100644 --- a/src/PatternMatcher.php +++ b/src/PatternMatcher.php @@ -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);