Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade php version to 8.1 #59 #66

Merged
merged 2 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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