Skip to content

Commit

Permalink
Update compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Oct 25, 2024
1 parent ba27a52 commit b74ab3e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/.github/ export-ignore
/tests/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
14 changes: 7 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3', '8.4']
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
Expand All @@ -26,7 +26,7 @@ jobs:
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache composer dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand Down Expand Up @@ -58,13 +58,13 @@ jobs:
- name: Archive logs
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: logs
name: logs-php-${{ matrix.php-versions }}
path: vendor/endroid/quality/application/var/log

- name: Archive code coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
name: coverage-php-${{ matrix.php-versions }}
path: tests/coverage
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2023 (c) Jeroen van den Enden
Copyright 2024 (c) Jeroen van den Enden

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"ext-fileinfo": "*",
"cocur/slugify": "^4.0",
"endroid/installer": "^1.3.2",
Expand Down
2 changes: 1 addition & 1 deletion src/Command/TeleportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
final class TeleportCommand extends Command
{
public function __construct(
private readonly Teleporter $teleporter
private readonly Teleporter $teleporter,
) {
parent::__construct();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Teleporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
use Twig\Loader\FilesystemLoader;
use Twig\TwigFilter;

final class Teleporter
final readonly class Teleporter
{
public function __construct(
private readonly Filesystem $fileSystem = new Filesystem()
private Filesystem $fileSystem = new Filesystem(),
) {
}

Expand Down
5 changes: 2 additions & 3 deletions tests/Command/TeleportCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
namespace Endroid\Teleporter\Command;

use Endroid\Teleporter\Teleporter;
use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Tester\CommandTester;

final class TeleportCommandTest extends TestCase
{
/**
* @testdox Check if a teleport command can be executed
*/
#[TestDox('Check if a teleport command can be executed')]
public function testExecute(): void
{
$teleporter = new Teleporter();
Expand Down

0 comments on commit b74ab3e

Please sign in to comment.