diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94eb45f..9e828fa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,10 @@ jobs: include: - php: 8.4 laravel: 11 + - php: 8.4 + laravel: 12 + - php: 8.5 + laravel: 12 exclude: - php: 7.2 laravel: 8 diff --git a/.github/workflows/update-changelog.yml b/.github/workflows/update-changelog.yml index 1625bda..ebda620 100644 --- a/.github/workflows/update-changelog.yml +++ b/.github/workflows/update-changelog.yml @@ -4,6 +4,10 @@ on: release: types: [released] +permissions: {} + jobs: update: + permissions: + contents: write uses: laravel/.github/.github/workflows/update-changelog.yml@main diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cb753e..849e9e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Release Notes -## [Unreleased](https://github.com/laravel/tinker/compare/v2.10.1...2.x) +## [Unreleased](https://github.com/laravel/tinker/compare/v2.10.2...2.x) + +## [v2.10.2](https://github.com/laravel/tinker/compare/v2.10.1...v2.10.2) - 2025-11-20 + +* [2.x] PHP 8.5 Compatibility by [@crynobone](https://github.com/crynobone) in https://github.com/laravel/tinker/pull/192 ## [v2.10.1](https://github.com/laravel/tinker/compare/v2.10.0...v2.10.1) - 2025-01-27 diff --git a/src/ClassAliasAutoloader.php b/src/ClassAliasAutoloader.php index 994d75c..4231e7c 100644 --- a/src/ClassAliasAutoloader.php +++ b/src/ClassAliasAutoloader.php @@ -142,9 +142,9 @@ public function isAliasable($class, $path) return false; } - if (! $this->includedAliases->filter(function ($alias) use ($class) { + if ($this->includedAliases->contains(function ($alias) use ($class) { return Str::startsWith($class, $alias); - })->isEmpty()) { + })) { return true; } @@ -152,9 +152,9 @@ public function isAliasable($class, $path) return false; } - if (! $this->excludedAliases->filter(function ($alias) use ($class) { + if ($this->excludedAliases->contains(function ($alias) use ($class) { return Str::startsWith($class, $alias); - })->isEmpty()) { + })) { return false; }