Skip to content

Commit ea2a76c

Browse files
committed
chore: support laravel 12.x
1 parent 544933d commit ea2a76c

12 files changed

+40
-84
lines changed

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Security Policy
22

3-
If you discover any security related issues, please email amigo.k8@gmail.com instead of using the issue tracker.
3+
If you discover any security related issues, please email tintnaingwin.code@gmail.com instead of using the issue tracker.

.github/workflows/fix-php-code-style-issues.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,14 @@ on: [push]
44

55
jobs:
66
php-code-styling:
7-
runs-on: ubuntu-22.04
8-
9-
strategy:
10-
fail-fast: true
7+
runs-on: ubuntu-latest
118

129
steps:
1310
- name: Check out repository code
1411
uses: actions/checkout@v4
1512

16-
- name: Setup PHP
17-
uses: shivammathur/setup-php@v2
18-
with:
19-
php-version: 8.2
20-
tools: composer:v2
21-
coverage: none
22-
23-
- name: Composer & GitHub Authentication
24-
run: composer config github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
25-
26-
- name: Install composer dependencies
27-
uses: nick-fields/retry@v3
28-
with:
29-
timeout_minutes: 3
30-
max_attempts: 5
31-
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
13+
- name: Install Dependencies
14+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
3215

3316
- name: Check code style
3417
timeout-minutes: 2

.github/workflows/phpstan.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,14 @@ on:
88

99
jobs:
1010
phpstan:
11-
runs-on: ubuntu-22.04
12-
13-
strategy:
14-
fail-fast: true
15-
16-
name: Static Analysis
11+
runs-on: ubuntu-latest
1712

1813
steps:
1914
- name: Check out repository code
2015
uses: actions/checkout@v4
2116

22-
- name: Setup PHP
23-
uses: shivammathur/setup-php@v2
24-
with:
25-
php-version: 8.2
26-
tools: composer:v2
27-
coverage: none
28-
29-
- name: Install composer dependencies
30-
uses: nick-fields/retry@v3
31-
with:
32-
timeout_minutes: 3
33-
max_attempts: 5
34-
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
17+
- name: Install Dependencies
18+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress
3519

3620
- name: Run PHPStan
3721
timeout-minutes: 2

.github/workflows/run-tests.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,19 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [main]
66
pull_request:
7-
branches: [master]
7+
branches: [main]
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212

1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [ 8.1, 8.2, 8.3 ]
17-
laravel: [ 9, 10, 11 ]
18-
exclude:
19-
- php: 8.1
20-
laravel: 11
21-
- php: 8.3
22-
laravel: 9
16+
php: [ 8.4,8.3,8.2 ]
17+
laravel: [ "^12.0", "^11.0" ]
2318

2419
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2520

@@ -42,7 +37,7 @@ jobs:
4237
4338
- name: Install dependencies
4439
run: |
45-
composer require "laravel/framework:^${{ matrix.laravel }}" --no-update
40+
composer require "laravel/framework:${{ matrix.laravel }}" --no-update
4641
composer update --prefer-dist --no-interaction --no-progress
4742
4843
- name: Execute tests

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Please review [our security policy](../../security/policy) on how to report secu
109109

110110
## Credits
111111

112-
- [Tint Naing Win](https://github.com/tintnaingwinn)
112+
- [Tint Naing Win](https://github.com/tintnaingwin)
113113
- [All Contributors](../../contributors)
114114

115115
## License

composer.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
22
"name": "laravel-notification-channels/smspoh",
3-
"description": "Smspoh Notifications channel for Laravel 9.x and 10.x.",
4-
"keywords": ["laravel", "notifications", "smspoh", "message", "sms", "myanmar", "MPT", "Telenor", "Ooredoo", "MyTel"],
3+
"description": "Smspoh Notifications channel",
4+
"keywords": ["laravel", "notifications", "smspoh", "message", "sms", "myanmar", "MPT", "Atom", "Ooredoo", "MyTel"],
55
"homepage": "https://github.com/laravel-notification-channels/smspoh",
66
"license": "MIT",
77
"authors": [
88
{
99
"name": "Tint Naing Win",
10-
"email": "amigo.k8@gmail.com",
11-
"homepage": "https://github.com/tintnaingwinn",
10+
"email": "tintnaingwin.code@gmail.com",
11+
"homepage": "https://github.com/tintnaingwin",
1212
"role": "Developer"
1313
}
1414
],
1515
"require": {
16-
"php": "^8.1",
16+
"php": "^8.2",
1717
"ext-json": "*",
1818
"guzzlehttp/guzzle": "^7.0",
19-
"illuminate/notifications": "^9.0|^10.0|^11.0",
20-
"illuminate/support": "^9.0|^10.0|^11.0"
19+
"illuminate/notifications": "^10.0|^11.0|^12.0",
20+
"illuminate/support": "^10.0|^11.0|^12.0"
2121
},
2222
"require-dev": {
2323
"laravel/pint": "^1.5",
24-
"mockery/mockery": "^1.3",
25-
"larastan/larastan": "^1.0|^2.0",
26-
"orchestra/testbench": "^7.31|^8.11|^9.0",
27-
"pestphp/pest": "^1.21|^2.0",
28-
"phpstan/extension-installer": "^1.1",
29-
"phpstan/phpstan-deprecation-rules": "^1.0",
30-
"phpstan/phpstan-phpunit": "^1.0",
31-
"roave/security-advisories": "dev-latest"
24+
"nunomaduro/collision": "^7.0|^8.1",
25+
"larastan/larastan": "^2.0|^3.0",
26+
"orchestra/testbench": "^8.0|^9.0|^10.0",
27+
"pestphp/pest": "^2.0|^3.0",
28+
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
29+
"phpstan/extension-installer": "^1.1|^2.0",
30+
"phpstan/phpstan-deprecation-rules": "^1.1|^2.0",
31+
"phpstan/phpstan-phpunit": "^1.1|^2.0"
3232
},
3333
"autoload": {
3434
"psr-4": {

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
includes:
2-
- phpstan-baseline.neon
3-
41
parameters:
52
level: 4
63
paths:
74
- src
85
tmpDir: build/phpstan
9-
checkMissingIterableValueType: false

src/SmspohServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class SmspohServiceProvider extends ServiceProvider
1212
/**
1313
* Bootstrap the application services.
1414
*/
15-
public function boot(): void
16-
{
17-
}
15+
public function boot(): void {}
1816

1917
/**
2018
* Register the application services.

tests/Feature/SmspohApiTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
});
1818

1919
it('can check smspoh responded with error', function () {
20-
$smspoh = new SmspohApi('token', new Client());
20+
$smspoh = new SmspohApi('token', new Client);
2121

2222
$smspoh->send([
2323
'sender' => '5554443333',
@@ -30,7 +30,7 @@
3030
it('can check not communicate with smspoh', function () {
3131
config()->set('services.smspoh.endpoint', 'https://smspoh2.com/api/v2/send');
3232

33-
$smspoh = new SmspohApi('token', new Client());
33+
$smspoh = new SmspohApi('token', new Client);
3434

3535
$smspoh->send([
3636
'sender' => '5554443333',

0 commit comments

Comments
 (0)