Skip to content

Commit 30fa05a

Browse files
authored
Merge pull request #155 from laravel-notification-channels/php-8.4
Update dependencies
2 parents ff8aeba + e53d6c1 commit 30fa05a

File tree

11 files changed

+202
-197
lines changed

11 files changed

+202
-197
lines changed

.github/workflows/run-tests.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
name: test
22

33
on:
4-
- push
4+
- push
55

66
jobs:
7-
test:
8-
runs-on: ${{ matrix.os }}
9-
10-
strategy:
11-
fail-fast: false
12-
matrix:
13-
os: [ubuntu-latest]
14-
php: [8.2, 8.3, 8.4]
15-
laravel: ['11.*', '12.*']
16-
stability: [prefer-lowest, prefer-stable]
17-
exclude:
18-
- laravel: 11.*
19-
php: 8.1
20-
21-
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
22-
23-
steps:
24-
- name: Checkout code
25-
uses: actions/checkout@v1
26-
27-
- name: Setup PHP
28-
uses: shivammathur/setup-php@v2
29-
with:
30-
php-version: ${{ matrix.php }}
31-
32-
- name: Install dependencies
33-
run: |
34-
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
35-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
36-
37-
- name: Execute tests
38-
run: vendor/bin/phpunit
7+
test:
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu-latest]
14+
php: [8.4, 8.5]
15+
laravel: ["12.*"]
16+
stability: [prefer-lowest, prefer-stable]
17+
exclude:
18+
- laravel: 12.*
19+
php: 8.3
20+
21+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v1
26+
27+
- name: Setup PHP
28+
uses: shivammathur/setup-php@v2
29+
with:
30+
php-version: ${{ matrix.php }}
31+
32+
- name: Install dependencies
33+
run: |
34+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
35+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
36+
37+
- name: Execute tests
38+
run: vendor/bin/phpunit

.styleci.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ Before submitting a pull request:
4040

4141
If the project maintainer has any additional requirements, you will find them listed here.
4242

43-
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).
44-
4543
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
4644

4745
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^8.2",
14+
"php": "^8.4",
1515
"edamov/pushok": "^0.18",
16-
"illuminate/cache": "^11.0|^12.0",
17-
"illuminate/config": "^11.0|^12.0",
18-
"illuminate/events": "^11.0|^12.0",
19-
"illuminate/notifications": "^11.0|^12.0",
20-
"illuminate/support": "^11.0|^12.0",
16+
"illuminate/cache": "^12.0",
17+
"illuminate/config": "^12.0",
18+
"illuminate/events": "^12.0",
19+
"illuminate/notifications": "^12.0",
20+
"illuminate/support": "^12.0",
2121
"nesbot/carbon": "^2.66|^3.0"
2222
},
2323
"require-dev": {
24-
"mockery/mockery": "^1.5.1",
25-
"phpunit/phpunit": "^11.0",
26-
"squizlabs/php_codesniffer": "^3.5"
24+
"laravel/pint": "^1.25",
25+
"mockery/mockery": "^1.6.0",
26+
"phpunit/phpunit": "^12.0"
2727
},
2828
"autoload": {
2929
"psr-4": {

src/ApnMessage.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public function badge(?int $badge): self
201201
/**
202202
* Set the sound of the notification.
203203
*/
204-
public function sound(null|string|Sound $sound = "default"): self
204+
public function sound(null|string|Sound $sound = 'default'): self
205205
{
206206
$this->sound = $sound;
207207

@@ -212,7 +212,7 @@ public function sound(null|string|Sound $sound = "default"): self
212212
* Set the interruptionLevel of the notification.
213213
*/
214214
public function interruptionLevel(
215-
string|ApnMessageInterruptionLevel|null $interruptionLevel = "active",
215+
string|ApnMessageInterruptionLevel|null $interruptionLevel = 'active',
216216
): self {
217217
$this->interruptionLevel =
218218
$interruptionLevel instanceof ApnMessageInterruptionLevel
@@ -409,9 +409,9 @@ public function setUrlArgs(array $urlArgs): self
409409
*/
410410
public function action(string $action, mixed $params = null): self
411411
{
412-
return $this->custom("action", [
413-
"action" => $action,
414-
"params" => $params,
412+
return $this->custom('action', [
413+
'action' => $action,
414+
'params' => $params,
415415
]);
416416
}
417417

0 commit comments

Comments
 (0)