diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 3f16902..135bd43 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['8.1', '8.2', '8.3', '8.4'] + php-versions: ['8.2', '8.3', '8.4'] symfony-versions: ['^6.0', '^7.0'] name: PHP ${{ matrix.php-versions }} with Symfony ${{ matrix.symfony-versions }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fd595b..5116686 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ 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). +## [1.6.1] - 2026-03-10 +### Changed +- Solve implicitly nullable parameters to better support PHP 8.4 ([#27](https://github.com/timoschinkel/codeowners-cli/pull/27)) + +### Removed +- Support for PHP 8.1 ([#27](https://github.com/timoschinkel/codeowners-cli/pull/27)) + ## [1.6.0] - 2025-05-28 ### Added - `-o`/`--owner-only` option for `codeowners owner` to print only the owner ([#26](https://github.com/timoschinkel/codeowners-cli/pull/26)) diff --git a/composer.json b/composer.json index ead8726..b8abc09 100755 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "project", "license": "Apache-2.0", "require": { - "php": "^8.1", + "php": "^8.2", "symfony/console": "^6.0|^7.0", "timoschinkel/codeowners": "^2.0", "symfony/finder": "^6.0|^7.0" diff --git a/src/FileLocator/FileLocatorFactory.php b/src/FileLocator/FileLocatorFactory.php index f17ecf1..8bad6ab 100644 --- a/src/FileLocator/FileLocatorFactory.php +++ b/src/FileLocator/FileLocatorFactory.php @@ -6,7 +6,7 @@ final class FileLocatorFactory implements FileLocatorFactoryInterface { - public function getFileLocator(string $workingDirectory, string $specifiedFile = null): FileLocatorInterface + public function getFileLocator(string $workingDirectory, ?string $specifiedFile = null): FileLocatorInterface { return $specifiedFile !== null ? new SpecifiedFileLocator($specifiedFile) diff --git a/src/FileLocator/FileLocatorFactoryInterface.php b/src/FileLocator/FileLocatorFactoryInterface.php index 147c345..5f09506 100644 --- a/src/FileLocator/FileLocatorFactoryInterface.php +++ b/src/FileLocator/FileLocatorFactoryInterface.php @@ -6,5 +6,5 @@ interface FileLocatorFactoryInterface { - public function getFileLocator(string $workingDirectory, string $specifiedFile = null): FileLocatorInterface; + public function getFileLocator(string $workingDirectory, ?string $specifiedFile = null): FileLocatorInterface; }