From 2ca15d77768863d2e408d5bd11e7259cc77359d1 Mon Sep 17 00:00:00 2001 From: SerafimArts Date: Tue, 10 Sep 2024 21:25:33 +0000 Subject: [PATCH] Fix rector deprecations --- .github/workflows/main.yml | 2 +- composer.json | 4 ++-- src/SourceFactoryInterface.php | 2 +- tests/CompatibilityTest.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7df0721..c92fc1c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ] + php: [ '8.1', '8.2', '8.3', '8.4' ] os: [ ubuntu-latest, macos-latest, windows-latest ] stability: [ prefer-lowest, prefer-stable ] steps: diff --git a/composer.json b/composer.json index 399e361..7a33a27 100644 --- a/composer.json +++ b/composer.json @@ -36,8 +36,8 @@ }, "extra": { "branch-alias": { - "dev-master": "4.x-dev", - "dev-main": "4.x-dev" + "dev-master": "3.x-dev", + "dev-main": "3.x-dev" } }, "config": { diff --git a/src/SourceFactoryInterface.php b/src/SourceFactoryInterface.php index ec8638d..dc71674 100644 --- a/src/SourceFactoryInterface.php +++ b/src/SourceFactoryInterface.php @@ -13,5 +13,5 @@ interface SourceFactoryInterface * @throws SourceExceptionInterface in case of an error in creating the * source object */ - public function create(mixed $source): ReadableInterface; + public function create($source): ReadableInterface; } diff --git a/tests/CompatibilityTest.php b/tests/CompatibilityTest.php index 1e8e09a..88e668f 100644 --- a/tests/CompatibilityTest.php +++ b/tests/CompatibilityTest.php @@ -54,7 +54,7 @@ public function testSourceFactoryCompatibility(): void public function create(mixed $source): ReadableInterface {} public function createFromString(string $content = '', ?string $name = null): ReadableInterface {} public function createFromFile(string $filename): FileInterface {} - public function createFromStream(mixed $stream, ?string $name = null): ReadableInterface {} + public function createFromStream($stream, ?string $name = null): ReadableInterface {} }; } }