Skip to content

Commit

Permalink
Drop support for php 8.1 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
VerifiedJoseph authored Jul 18, 2024
1 parent e4040dd commit 8cb208b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Run composer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: "Validate composer.json and composer.lock"
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
with:
php-version: '8.1'
php-version: '8.2'
coverage: none
tools: cs2pr

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@2e947f1f6932d141d076ca441d0e1e881775e95b # v2.31.0
with:
php-version: '8.1'
php-version: '8.2'
coverage: xdebug
extensions: mbstring

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Vigilant supports sending push notifications with [Gotify](https://gotify.net) o

## Requirements

- PHP >= 8.1
- PHP >= 8.2
- Composer
- PHP Extensions:
- [`JSON`](https://www.php.net/manual/en/book.json.php)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"require": {
"php": "^8.1",
"php": "^8.2",
"verifiedjoseph/gotify-api-php": "^1.7",
"verifiedjoseph/ntfy-php-library": "^4.0",
"symfony/yaml": "^7.1.1",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Config
private Validator $validate;

/** @var string $minPhpVersion Minimum PHP version */
private string $minPhpVersion = '8.1.0';
private string $minPhpVersion = '8.2.0';

/** @var array<int, string> $extensions Required PHP extensions */
private array $extensions = ['xml', 'xmlreader', 'ctype'];
Expand Down
4 changes: 2 additions & 2 deletions tests/Config/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ public function testGetConfig(): void
public function testVersion(): void
{
$this->expectException(ConfigException::class);
$this->expectExceptionMessage('Vigilant requires at least PHP version 8.1.0');
$this->expectExceptionMessage('Vigilant requires at least PHP version 8.2.0');

$validate = new Validator(self::$defaults);
$validate->version('8.0.0', '8.1.0');
$validate->version('8.0.0', '8.2.0');
}

/**
Expand Down

0 comments on commit 8cb208b

Please sign in to comment.