Skip to content

Commit

Permalink
Merge pull request #21 from railsware/feature/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
gaalferov authored Mar 20, 2024
2 parents 4aeddaf + f2c4b0a commit 7d0d6d5
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 13 deletions.
37 changes: 36 additions & 1 deletion .github/workflows/ci-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
php-version: [ '7.4','8.0','8.1','8.2' ]
php-version: [ '7.4','8.0','8.1','8.2','8.3' ]

steps:
- name: Checkout
Expand Down Expand Up @@ -62,6 +62,8 @@ jobs:
php-version: '7.4'
- symfony: '6'
php-version: '8.2'
- symfony: '7'
php-version: '8.3'

steps:
- name: Checkout
Expand All @@ -83,3 +85,36 @@ jobs:
- name: Execute tests
run: composer test

laravel:
name: Laravel ${{ matrix.laravel }} LTS
runs-on: ubuntu-latest
strategy:
matrix:
include:
- laravel: '9'
php-version: '8.1'
- laravel: '10'
php-version: '8.2'
- laravel: '11'
php-version: '8.3'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer config --no-plugins allow-plugins.laravel/installer true
composer require --no-update --no-interaction --no-progress laravel/framework:${{ matrix.laravel }}
composer update --prefer-dist --no-interaction --prefer-stable --prefer-lowest --no-progress
- name: Execute tests
run: composer test
2 changes: 1 addition & 1 deletion .github/workflows/ci-psalm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
php-versions: [ '7.4','8.0','8.1','8.2' ]
php-versions: [ '7.4','8.0','8.1','8.2','8.3' ]

steps:
- name: Checkout
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [1.7.4] - 2024-03-20

- Add PHP 8.3 support (GitHub Actions)
- Support new Symfony packages v7 (mime, http-client, etc)

## [1.7.3] - 2024-01-30

- Use Psr18ClientDiscovery instead of deprecated HttpClientDiscovery
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"php-http/httplug": "^2.0",
"php-http/discovery": "^1.0",
"php-http/message-factory": "^1.0",
"symfony/mime": "^5.4|^6.0",
"symfony/mime": "^5.4|^6.0|^7.0",
"egulias/email-validator": "^2.1.10|^3.1|^4"
},
"require-dev": {
"symfony/http-client": "^5.4|^6.0",
"symfony/mailer": "^5.4|^6.0",
"symfony/http-client": "^5.4|^6.0|^7.0",
"symfony/mailer": "^5.4|^6.0|^7.0",
"phpunit/phpunit": "^9",
"nyholm/psr7": "^1.5",
"vimeo/psalm": "^4.0 || ^5.0"
Expand Down
4 changes: 2 additions & 2 deletions src/EmailHeader/CategoryHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(string $value)
/**
* @param string $body
*/
public function setBody($body)
public function setBody($body): void
{
$this->setValue($body);
}
Expand All @@ -51,7 +51,7 @@ public function getValue(): string
/**
* Set the (unencoded) value of this header.
*/
public function setValue(string $value)
public function setValue(string $value): void
{
$this->value = $value;
}
Expand Down
4 changes: 2 additions & 2 deletions src/EmailHeader/CustomVariableHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(string $name, string $value)
/**
* @param string $body
*/
public function setBody($body)
public function setBody($body): void
{
$this->setValue($body);
}
Expand All @@ -51,7 +51,7 @@ public function getValue(): string
/**
* Set the (unencoded) value of this header.
*/
public function setValue(string $value)
public function setValue(string $value): void
{
$this->value = $value;
}
Expand Down
4 changes: 2 additions & 2 deletions src/EmailHeader/Template/TemplateUuidHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(string $value)
/**
* @param string $body
*/
public function setBody($body)
public function setBody($body): void
{
$this->setValue($body);
}
Expand All @@ -51,7 +51,7 @@ public function getValue(): string
/**
* Set the (unencoded) value of this header.
*/
public function setValue(string $value)
public function setValue(string $value): void
{
$this->value = $value;
}
Expand Down
4 changes: 2 additions & 2 deletions src/EmailHeader/Template/TemplateVariableHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(string $name, string $value)
/**
* @param string $body
*/
public function setBody($body)
public function setBody($body): void
{
$this->setValue($body);
}
Expand All @@ -51,7 +51,7 @@ public function getValue(): string
/**
* Set the (unencoded) value of this header.
*/
public function setValue(string $value)
public function setValue(string $value): void
{
$this->value = $value;
}
Expand Down

0 comments on commit 7d0d6d5

Please sign in to comment.