Skip to content

Commit

Permalink
Fix rector deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Sep 10, 2024
1 parent 0923ce5 commit 2ca15d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/SourceFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion tests/CompatibilityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
};
}
}

0 comments on commit 2ca15d7

Please sign in to comment.