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/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body:
attributes:
label: PHP version
description: What PHP version are you using?
placeholder: 'e.g. 8.1.18'
placeholder: 'e.g. 8.2.29'
validations:
required: true
- type: input
Expand Down
6 changes: 0 additions & 6 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ rulesets:
required_status_checks:
- context: 'cgl'
integration_id: 15368
- context: 'Tests with Composer (PHP 8.1, PHPUnit 10 & highest dependencies)'
integration_id: 15368
- context: 'Tests with Composer (PHP 8.1, PHPUnit 10 & lowest dependencies)'
integration_id: 15368
- context: 'Tests with Composer (PHP 8.2, PHPUnit 10 & highest dependencies)'
integration_id: 15368
- context: 'Tests with Composer (PHP 8.2, PHPUnit 10 & lowest dependencies)'
Expand Down Expand Up @@ -138,8 +134,6 @@ rulesets:
integration_id: 15368
- context: 'Tests with Composer (PHP 8.5, PHPUnit 12 & lowest dependencies)'
integration_id: 15368
- context: 'Tests with PHAR (PHP 8.1 & PHPUnit 10)'
integration_id: 15368
- context: 'Tests with PHAR (PHP 8.2 & PHPUnit 10)'
integration_id: 15368
- context: 'Tests with PHAR (PHP 8.2 & PHPUnit 11)'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cgl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
# We use the minimum supported PHP version
php-version: 8.1
php-version: 8.2
tools: composer:v2, composer-require-checker, composer-unused, cs2pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,10 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2", "8.3", "8.4", "8.5"]
php-version: ["8.2", "8.3", "8.4", "8.5"]
phpunit-version: ["10", "11", "12"]
dependencies: ["highest", "lowest"]
exclude:
- php-version: "8.1"
phpunit-version: "11"
- php-version: "8.1"
phpunit-version: "12"
- php-version: "8.2"
phpunit-version: "12"
steps:
Expand Down Expand Up @@ -62,13 +58,9 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ["8.1", "8.2", "8.3", "8.4", "8.5"]
php-version: ["8.2", "8.3", "8.4", "8.5"]
phpunit-version: ["10", "11", "12"]
exclude:
- php-version: "8.1"
phpunit-version: "11"
- php-version: "8.1"
phpunit-version: "12"
- php-version: "8.2"
phpunit-version: "12"
steps:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all steps below.

## Requirements

- PHP >= 8.1
- PHP >= 8.2

## Preparation

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
}
],
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
"phpunit/phpunit": "^10.5.53 || ^11.5.34 || ^12.3.6"
},
"require-dev": {
"armin/editorconfig-cli": "^1.8 || ^2.0",
"armin/editorconfig-cli": "^2.0",
"eliashaeussler/php-cs-fixer-config": "^2.0",
"eliashaeussler/phpstan-config": "^2.5.1",
"eliashaeussler/rector-config": "^3.0",
Expand Down
32 changes: 16 additions & 16 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use Rector\ValueObject\PhpVersion;

return static function (RectorConfig $rectorConfig): void {
Config::create($rectorConfig, PhpVersion::PHP_81)
Config::create($rectorConfig, PhpVersion::PHP_82)
->in(
__DIR__.'/src',
__DIR__.'/tests',
Expand Down
4 changes: 2 additions & 2 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"local>eliashaeussler/renovate-config"
],
"constraints": {
"php": "8.1.*"
"php": "8.2.*"
},
"packageRules": [
{
"enabled": false,
"matchCurrentVersion": "8.1",
"matchCurrentVersion": "8.2",
"matchDatasources": [
"github-tags"
],
Expand Down
8 changes: 4 additions & 4 deletions src/Attribute/ForbidsClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class ForbidsClass
final readonly class ForbidsClass
{
/**
* @param class-string $className
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $className,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $className,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Attribute/ForbidsConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class ForbidsConstant
final readonly class ForbidsConstant
{
/**
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $constant,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $constant,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

public function constant(): string
Expand Down
8 changes: 4 additions & 4 deletions src/Attribute/ForbidsEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class ForbidsEnv
final readonly class ForbidsEnv
{
/**
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $envVariableName,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $envVariableName,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

public function envVariableName(): string
Expand Down
10 changes: 5 additions & 5 deletions src/Attribute/ForbidsPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class ForbidsPackage
final readonly class ForbidsPackage
{
/**
* @param non-empty-string $package
* @param non-empty-string|null $versionRequirement
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $package,
private readonly ?string $versionRequirement = null,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $package,
private ?string $versionRequirement = null,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Attribute/RequiresClass.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class RequiresClass
final readonly class RequiresClass
{
/**
* @param class-string $className
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $className,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $className,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Attribute/RequiresConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class RequiresConstant
final readonly class RequiresConstant
{
/**
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $constant,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $constant,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

public function constant(): string
Expand Down
8 changes: 4 additions & 4 deletions src/Attribute/RequiresEnv.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class RequiresEnv
final readonly class RequiresEnv
{
/**
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $envVariableName,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $envVariableName,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

public function envVariableName(): string
Expand Down
10 changes: 5 additions & 5 deletions src/Attribute/RequiresPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class RequiresPackage
final readonly class RequiresPackage
{
/**
* @param non-empty-string $package
* @param non-empty-string|null $versionRequirement
* @param non-empty-string|null $message
*/
public function __construct(
private readonly string $package,
private readonly ?string $versionRequirement = null,
private readonly ?string $message = null,
private readonly ?Enum\OutcomeBehavior $outcomeBehavior = null,
private string $package,
private ?string $versionRequirement = null,
private ?string $message = null,
private ?Enum\OutcomeBehavior $outcomeBehavior = null,
) {}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/TextUI/Configuration/MigrationResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
* @author Elias Häußler <elias@haeussler.dev>
* @license GPL-3.0-or-later
*/
final class MigrationResult
final readonly class MigrationResult
{
private function __construct(
private readonly Migration $migration,
private readonly string $value,
private readonly ?string $legacyValue,
private Migration $migration,
private string $value,
private ?string $legacyValue,
) {}

public static function forMigration(
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Fixtures/DummyAttribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
* @license GPL-3.0-or-later
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
final class DummyAttribute
final readonly class DummyAttribute
{
/**
* @param non-empty-string $message
*/
public function __construct(
public readonly string $message,
public string $message,
) {}
}