Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0', '8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3', '8.4']
name: PHP ${{ matrix.php-versions }}

steps:
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.4.1] - 2025-01-29
### Removed
- Dropped support for PHP 8.0

### Added
- Inspections - and thus support - for PHP 8.3 and 8.4

## [1.4.0] - 2022-12-09
### Added
- Version output to `codeowners --version`
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "project",
"license": "Apache-2.0",
"require": {
"php": "^8.0, <8.3",
"php": "^8.1",
"symfony/console": "^6.0",
"timoschinkel/codeowners": "^2.0",
"symfony/finder": "^6.0"
Expand All @@ -18,7 +18,7 @@
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.5",
"vimeo/psalm": "^4.2",
"vimeo/psalm": "^6.0",
"phpunit/phpunit": "^9.4",
"mikey179/vfsstream": "^1.6",
"phpspec/prophecy-phpunit": "^2.0"
Expand Down
2 changes: 2 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@
<RawObjectIteration errorLevel="info" />

<InvalidStringClass errorLevel="info" />

<UnusedClass errorLevel="suppress" />
</issueHandlers>
</psalm>
3 changes: 2 additions & 1 deletion src/Command/ListFilesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ private function normalizePaths(array $paths): array
// not support `realpath`.
return array_map(
function (string $path): string {
return realpath($path) ?: $path;
$realpath = realpath($path);
return $realpath !== false ? $realpath : $path;
},
$paths
);
Expand Down
3 changes: 2 additions & 1 deletion src/Command/ListUnownedFilesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ private function normalizePaths(array $paths): array
// not support `realpath`.
return array_map(
function (string $path): string {
return realpath($path) ?: $path;
$realpath = realpath($path);
return $realpath !== false ? $realpath : $path;
},
$paths
);
Expand Down
2 changes: 1 addition & 1 deletion src/FileLocator/FileLocatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class FileLocatorFactory implements FileLocatorFactoryInterface
{
public function getFileLocator(string $workingDirectory, string $specifiedFile = null): FileLocatorInterface
{
return empty($specifiedFile) === false
return $specifiedFile !== null
? new SpecifiedFileLocator($specifiedFile)
: new SearchFileLocator($workingDirectory);
}
Expand Down