Skip to content

Commit

Permalink
Merge pull request #66 from CrazyTapok-bit/upgrade-to-php-8.1
Browse files Browse the repository at this point in the history
Upgrade php version to 8.1 #59
  • Loading branch information
CrazyTapok-bit authored Nov 12, 2023
2 parents eed849e + dd779f3 commit d613c1a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2]
php: [8.1, 8.2]

steps:
- name: Checkout repository
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"issues": "https://github.com/CrazyTapok-bit/tgWebValid/issues",
"source": "https://github.com/CrazyTapok-bit/tgWebValid",
"forum": "https://github.com/CrazyTapok-bit/tgWebValid/discussions",
"docs": "https://github.com/CrazyTapok-bit/tgWebValid/blob/master/README.md"
"docs": "https://github.com/CrazyTapok-bit/tgWebValid#readme"
},
"authors": [
{
Expand All @@ -28,7 +28,7 @@
"analyze": "phpstan analyze --ansi"
},
"require": {
"php": "^8.0",
"php": "^8.1",
"nesbot/carbon": "^2.67"
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions src/Bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
class Bot
{
public function __construct(
private string $token,
private bool $throw = false
private readonly string $token,
private readonly bool $throw = false
)
{
}
Expand Down
4 changes: 2 additions & 2 deletions src/BotConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
class BotConfig
{
public function __construct(
public string $name,
public string $token
public readonly string $name,
public readonly string $token
)
{
}
Expand Down
4 changes: 2 additions & 2 deletions src/TgWebValid.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ final class TgWebValid
private array $bots = [];

public function __construct(
private string $token,
private bool $throw = false
private readonly string $token,
private readonly bool $throw = false
)
{
}
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
abstract class Validator
{
public function __construct(
protected string $token,
protected bool $throw = false
protected readonly string $token,
protected readonly bool $throw = false
)
{
}
Expand Down

0 comments on commit d613c1a

Please sign in to comment.