Skip to content

Commit

Permalink
Support PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit authored and scrs_zdenek committed Aug 3, 2023
1 parent 102a036 commit 6a0cefd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1
coverage: none

- run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
Expand All @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1
coverage: none

- run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1
coverage: none

- run: composer install --no-progress --prefer-dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0']
php: ['8.1']

fail-fast: false

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=8.0",
"php": ">=8.1",
"nette/di": "^3.0",
"nette/utils": "^3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Drago/User/DI/GravatarExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(int $size, string $defaultImage, string $rating)
}


public function loadConfiguration()
public function loadConfiguration(): void
{
$builder = $this->getContainerBuilder();
$builder->addDefinition($this->prefix('gravatar'))
Expand Down
4 changes: 2 additions & 2 deletions src/Drago/User/Gravatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class Gravatar
*/
public function __construct(
private int $size,
private string $defaultImage,
private string $rating,
private readonly string $defaultImage,
private readonly string $rating,
) {
$this->setSize($this->size);
}
Expand Down

0 comments on commit 6a0cefd

Please sign in to comment.