Skip to content

Commit 04f3887

Browse files
committed
Update PHP minimum version to 8.0 and dependencies to latest compatible version
1 parent 2754440 commit 04f3887

18 files changed

+60
-55
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
16-
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']
16+
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
1717
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
1818
steps:
1919
- name: Checkout
@@ -28,7 +28,7 @@ jobs:
2828
run: php -v
2929
- name: Cache Composer packages
3030
id: composer-cache
31-
uses: actions/cache@v3
31+
uses: actions/cache@v4
3232
with:
3333
path: vendor
3434
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ build:
1111
command: phpcs-run
1212
use_website_config: false
1313
environment:
14-
php: 7.4.0
14+
php: 8.0
1515
filter:
1616
excluded_paths:
1717
- 'tests/*'

README.MD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/77fcc5733a9f4f8d844bf43a09112387)](https://app.codacy.com/gh/platine-php/mail/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
1313

1414
### Requirements
15-
- **PHP >= 7.4**, **PHP 8**
15+
- **PHP >= 8.0**
1616

1717
### Installation
1818
#### Using composer (recommended)

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
},
2020

2121
"require": {
22-
"php": "^7.4 || ^8"
22+
"php": "^8"
2323
},
2424

2525
"require-dev": {
2626
"mikey179/vfsstream": "~1.6",
2727
"phpmd/phpmd": "@stable",
28-
"phpstan/phpstan": "^1.8",
29-
"phpunit/phpunit": "^9.5",
30-
"platine-php/dev": "^1.0",
28+
"phpstan/phpstan": "^2.0",
29+
"phpunit/phpunit": "^9.6",
30+
"platine-php/dev": "^2.0",
3131
"squizlabs/php_codesniffer": "3.*"
3232
},
3333

src/Exception/FileTransportException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
use Exception;
3838

3939
/**
40-
* Class FileTransportException
40+
* @class FileTransportException
4141
* @package Platine\Mail\Exception
4242
*/
4343
class FileTransportException extends Exception

src/Exception/MailException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
use Exception;
3838

3939
/**
40-
* Class MailException
40+
* @class MailException
4141
* @package Platine\Mail\Exception
4242
*/
4343
class MailException extends Exception

src/Exception/SMTPException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
use Exception;
3838

3939
/**
40-
* Class SMTPException
40+
* @class SMTPException
4141
* @package Platine\Mail\Exception
4242
*/
4343
class SMTPException extends Exception

src/Exception/SMTPRetunCodeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
namespace Platine\Mail\Exception;
3636

3737
/**
38-
* Class SMTPRetunCodeException
38+
* @class SMTPRetunCodeException
3939
* @package Platine\Mail\Exception
4040
*/
4141
class SMTPRetunCodeException extends SMTPException

src/Exception/SMTPSecureException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
namespace Platine\Mail\Exception;
3636

3737
/**
38-
* Class SMTPException
38+
* @class SMTPException
3939
* @package Platine\Mail\Exception
4040
*/
4141
class SMTPSecureException extends SMTPException

src/Mailer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
use Platine\Mail\Transport\TransportInterface;
5353

5454
/**
55-
* Class Mailer
55+
* @class Mailer
5656
* @package Platine\Mail
5757
*/
5858
class Mailer
@@ -69,7 +69,7 @@ class Mailer
6969
*/
7070
public function __construct(?TransportInterface $transport = null)
7171
{
72-
$this->transport = $transport ? $transport : new NullTransport();
72+
$this->transport = $transport ?? new NullTransport();
7373
}
7474

7575
/**

0 commit comments

Comments
 (0)