Skip to content

Commit

Permalink
Support PHP 8.3 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-m authored Jun 12, 2024
1 parent 47643f9 commit 581ef81
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
tag: << parameters.version >>
parameters:
version:
default: "7.4"
default: "8.3"
description: The `cimg/php` Docker image version tag.
type: string
install-flags:
Expand All @@ -154,7 +154,7 @@ jobs:
- when:
condition:
and:
- equal: [ "8.1", <<parameters.version>> ]
- equal: [ "8.3", <<parameters.version>> ]
- equal: [ "", <<parameters.install-flags>> ]
steps:
- run-phpunit-tests:
Expand All @@ -164,7 +164,7 @@ jobs:
condition:
not:
and:
- equal: [ "8.1", <<parameters.version>> ]
- equal: [ "8.3", <<parameters.version>> ]
- equal: [ "", <<parameters.install-flags>> ]
steps:
- run-phpunit-tests:
Expand All @@ -176,5 +176,5 @@ workflows:
- matrix-conditions:
matrix:
parameters:
version: ["7.4", "8.0", "8.1", "8.2"]
version: ["7.4", "8.0", "8.1", "8.2", "8.3"]
install-flags: ["", "--prefer-lowest"]
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
}
],
"require": {
"php": ">=7.4 <8.3",
"php": ">=7.4 <8.4",
"ext-curl": "*",
"getdkan/procrastinator": "^5.0.0",
"getdkan/procrastinator": "^5.0.2",
"guzzlehttp/guzzle": "^6.5.8 || ^7.4.5"
},
"require-dev": {
Expand Down
7 changes: 2 additions & 5 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Core\ValueObject\PhpVersion;
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessParamTagRector;
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
Expand All @@ -18,11 +17,8 @@
__DIR__ . '/test',
]);

// Our base version of PHP.
$rectorConfig->phpVersion(PhpVersion::PHP_74);

$rectorConfig->sets([
SetList::PHP_82,
SetList::PHP_74,
// Please no dead code or unneeded variables.
SetList::DEAD_CODE,
// Try to figure out type hints.
Expand All @@ -41,6 +37,7 @@
AddMethodCallBasedStrictParamTypeRector::class,
]);

$rectorConfig->removeUnusedImports();
$rectorConfig->importNames();
$rectorConfig->importShortClasses(false);
};
4 changes: 0 additions & 4 deletions src/Processor/ProcessorBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

namespace FileFetcher\Processor;

use FileFetcher\PhpFunctionsBridgeTrait;
use FileFetcher\TemporaryFilePathFromUrl;
use Procrastinator\Result;

abstract class ProcessorBase
{
/**
Expand Down
1 change: 0 additions & 1 deletion test/Mock/FakeProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace FileFetcherTests\Mock;

use FileFetcher\Processor\Local;
use FileFetcher\Processor\ProcessorInterface;
use Procrastinator\Result;

Expand Down

0 comments on commit 581ef81

Please sign in to comment.