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

feat: drop support for PHP 8.0 and below #33

Merged
merged 2 commits into from
Jan 30, 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/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
php-version: '8.1'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.2, 8.1, 8.0, 7.4]
php: [8.2, 8.1]
dependency-version: [prefer-lowest, prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
}
],
"require": {
"php": "^7.4|^8.0",
"php": "^8.1",
"guzzlehttp/guzzle": "^6.5.8|^7.5",
"nesbot/carbon": "^2.65.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"psalm/plugin-laravel": "^1.6.2|^2.5",
"psalm/plugin-laravel": "^2.5",
"vlucas/phpdotenv": "^5.5"
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion src/OhDear.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class OhDear
use ManagesCronChecks;
use ManagesDnsHistoryItems;

/** @var string */
public string $apiToken;

public Client $client;
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/ApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ApiResource
{
public array $attributes = [];

protected ?OhDear $ohDear;
protected OhDear|null $ohDear;

public function __construct(array $attributes, OhDear $ohDear = null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/BrokenLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class BrokenLink extends ApiResource
/*
* The status code the site responded with.
*/
public ?int $statusCode;
public int|null $statusCode;

/*
* The url that is broken.
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Check extends ApiResource
public string $type;

/*
* The human readable version of type.
* The human-readable version of type.
*/
public string $label;

Expand Down
6 changes: 3 additions & 3 deletions src/Resources/CronCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ class CronCheck extends ApiResource

public int $checkId;

public ?int $frequencyInMinutes;
public int|null $frequencyInMinutes;

public string $pingUrl;

public int $graceTimeInMinutes = 0;

public ?string $cronExpression = '';
public string|null $cronExpression = '';

public ?string $description = '';
public string|null $description = '';

public function __construct(array $attributes, $ohDear = null)
{
Expand Down
3 changes: 1 addition & 2 deletions src/Resources/Downtime.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ class Downtime extends ApiResource
{
public string $startedAt;

/** @var string */
public ?string $endedAt;
public string|null $endedAt;
}
2 changes: 1 addition & 1 deletion src/Resources/MaintenancePeriod.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ class MaintenancePeriod extends ApiResource

public string $startsAt;

public ?string $endsAt;
public string|null $endsAt;
}
2 changes: 1 addition & 1 deletion src/Resources/StatusPageUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class StatusPageUpdate extends ApiResource

public string $title;

public ?string $text;
public string|null $text;

public bool $pinned;

Expand Down