Skip to content

Commit

Permalink
chore: bump php requirement to 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil committed May 2, 2023
1 parent 1dcdc1c commit 15687cd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
strategy:
matrix:
php-version:
- '8.0'
- '8.1'
- '8.2'
steps:
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.0",
"php": "^8.1",
"phpstan/phpstan": "^1.10"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Sealed.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ final class Sealed
* @param non-empty-array<class-string> $permits
*/
public function __construct(
public array $permits,
public readonly array $permits,
) {}
}
2 changes: 1 addition & 1 deletion src/SealedClassAllowedSubTypesClassReflectionExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
final class SealedClassAllowedSubTypesClassReflectionExtension implements AllowedSubTypesClassReflectionExtension
{
public function __construct(
private ScopeFactory $scopeFactory,
private readonly ScopeFactory $scopeFactory,
)
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/SealedClassRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
final class SealedClassRule implements Rule
{
public function __construct(
private ReflectionProvider $reflectionProvider,
private readonly ReflectionProvider $reflectionProvider,
)
{
}
Expand Down

0 comments on commit 15687cd

Please sign in to comment.