Skip to content

feat: add PHP 8.4 support, drop PHP 7.4 and 8.0 support, update development dependencies #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
3 changes: 1 addition & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ jobs:
strategy:
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"
composer-dependency-versions:
- "lowest"
- "highest"
Expand Down
4 changes: 2 additions & 2 deletions .lando.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: composer-git-hooks

services:
appserver:
type: php:7.4
type: php:8.1
via: cli
xdebug: true
composer_version: '2.5.4'
composer_version: 2

# Add additional tooling
tooling:
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
}
},
"require": {
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
"composer-plugin-api": "^2.0"
},
"require-dev": {
"composer/composer": "^2.0",
"iodigital-com/php-code-sniffer-standard": "^29.0",
"slevomat/coding-standard": "^7.1.0 || ^8.0",
"phpstan/extension-installer": "^1.2.0",
"phpstan/phpstan": "^1.10.1",
"phpstan/phpstan-strict-rules": "^1.5.0"
"iodigital-com/php-code-sniffer-standard": "^29.3",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-strict-rules": "^2.0",
"slevomat/coding-standard": "^8.15"
},
"scripts": {
"post-install-cmd": "IODigital\\ComposerGitHooks\\ComposerPlugin::process",
Expand Down
4 changes: 2 additions & 2 deletions phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<rule ref="IO"/>

<!-- Set phpcs versions. -->
<config name="php_version" value="70400"/>
<config name="testVersion" value="7.4-8.3"/>
<config name="php_version" value="80100"/>
<config name="testVersion" value="8.1-8.4"/>
</ruleset>
6 changes: 5 additions & 1 deletion src/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ public function createDirectoryIfNotExists(string $directory): void
protected function performRecursive(string $source, string $dest, FileSystemAction $action): bool
{
if (is_link($source)) {
return readlink($source) !== false ? symlink(readlink($source), $dest) : false;
$linkTarget = readlink($source);
if ($linkTarget === false) {
return false;
}
return symlink($linkTarget, $dest);
} elseif (is_file($source)) {
return $action->invoke($source, $dest);
} elseif (!is_dir($dest)) {
Expand Down