File tree 8 files changed +62
-53
lines changed
8 files changed +62
-53
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ on: [push]
4
4
5
5
jobs :
6
6
php-code-styling :
7
- runs-on : ubuntu-latest
7
+ runs-on : ubuntu-22.04
8
+
9
+ strategy :
10
+ fail-fast : true
8
11
9
12
steps :
10
13
- name : Checkout code
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
phpstan :
11
- name : phpstan
12
- runs-on : ubuntu-latest
11
+ runs-on : ubuntu-22.04
12
+
13
+ strategy :
14
+ fail-fast : true
15
+
16
+ name : Static Analysis
17
+
13
18
steps :
14
- - uses : actions/checkout@v4
19
+ - name : Check out repository code
20
+ uses : actions/checkout@v4
15
21
16
22
- name : Setup PHP
17
23
uses : shivammathur/setup-php@v2
18
24
with :
19
- php-version : ' 8.2'
25
+ php-version : 8.2
26
+ tools : composer:v2
20
27
coverage : none
21
28
22
29
- name : Install composer dependencies
23
- uses : ramsey/composer-install@v3
30
+ uses : nick-fields/retry@v2
31
+ with :
32
+ timeout_minutes : 3
33
+ max_attempts : 5
34
+ command : composer update --prefer-stable --prefer-dist --no-interaction --no-progress
24
35
25
36
- name : Run PHPStan
26
37
timeout-minutes : 2
27
- run : ./vendor/bin/phpstan --error-format=github
38
+ run : ./vendor/bin/phpstan analyse --error-format=github
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
test :
11
- runs-on : ${{ matrix.os }}
11
+ runs-on : ubuntu-22.04
12
+
12
13
strategy :
13
14
fail-fast : true
14
15
matrix :
15
- os : [ubuntu-latest]
16
- php : [8.2, 8.1, 8.0]
17
- laravel : [10.*, 9.*]
18
- dependency-version : [prefer-lowest, prefer-stable]
19
- include :
20
- - laravel : 10.*
21
- testbench : 8.*
22
- larastan : 2.4.*
23
- - laravel : 9.*
24
- testbench : 7.*
25
- larastan : 2.*
16
+ php : [ 8.1, 8.2, 8.3 ]
17
+ laravel : [ 10, 11 ]
26
18
exclude :
27
- - laravel : 10.*
28
- php : 8.0
19
+ - php : 8.1
20
+ laravel : 11
29
21
30
- name : P ${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
22
+ name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
31
23
32
24
steps :
33
25
- name : Checkout code
37
29
uses : shivammathur/setup-php@v2
38
30
with :
39
31
php-version : ${{ matrix.php }}
32
+ ini-values : error_reporting=E_ALL
33
+ tools : composer:v2
34
+ coverage : none
40
35
41
36
- name : Setup problem matchers
42
37
run : |
45
40
46
41
- name : Install dependencies
47
42
run : |
48
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nunomaduro/larastan:${{ matrix.larastan }}" --no-interaction --no-update
49
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
43
+ composer require "laravel/framework:^ ${{ matrix.laravel }}" --no-update
44
+ composer update --prefer-dist --no-interaction --no-progress
50
45
51
46
- name : Execute tests
52
47
timeout-minutes : 2
Original file line number Diff line number Diff line change 1
1
name : " Update Changelog"
2
2
3
3
on :
4
- release :
5
- types : [released]
4
+ release :
5
+ types : [released]
6
6
7
7
jobs :
8
- update :
9
- runs-on : ubuntu-latest
8
+ update :
9
+ runs-on : ubuntu-latest
10
10
11
- steps :
12
- - name : Checkout code
13
- uses : actions/checkout@v4
14
- with :
15
- ref : main
11
+ steps :
12
+ - name : Checkout code
13
+ uses : actions/checkout@v4
14
+ with :
15
+ ref : main
16
16
17
- - name : Update Changelog
18
- uses : stefanzweifel/changelog-updater-action@v1
19
- with :
20
- latest-version : ${{ github.event.release.name }}
21
- release-notes : ${{ github.event.release.body }}
17
+ - name : Update Changelog
18
+ uses : stefanzweifel/changelog-updater-action@v1
19
+ with :
20
+ latest-version : ${{ github.event.release.name }}
21
+ release-notes : ${{ github.event.release.body }}
22
22
23
- - name : Commit updated CHANGELOG
24
- uses : stefanzweifel/git-auto-commit-action@v5
25
- with :
26
- branch : main
27
- commit_message : Update CHANGELOG
28
- file_pattern : CHANGELOG.md
23
+ - name : Commit updated CHANGELOG
24
+ uses : stefanzweifel/git-auto-commit-action@v5
25
+ with :
26
+ branch : main
27
+ commit_message : Update CHANGELOG
28
+ file_pattern : CHANGELOG.md
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/ageekdev/laravel-num.svg?style=flat-square )] ( https://packagist.org/packages/ageekdev/laravel-num )
4
4
[ ![ Laravel 9.x] ( https://img.shields.io/badge/Laravel-9.x-red.svg?style=flat-square )] ( https://laravel.com/docs/9.x )
5
- [ ![ Laravel 10.x] ( https://img.shields.io/badge/Laravel-10.x-red.svg?style=flat-square )] ( http://laravel.com )
5
+ [ ![ Laravel 10.x] ( https://img.shields.io/badge/Laravel-10.x-red.svg?style=flat-square )] ( https://laravel.com/docs/10.x )
6
+ [ ![ Laravel 11.x] ( https://img.shields.io/badge/Laravel-11.x-red.svg?style=flat-square )] ( https://laravel.com/docs/11.x )
6
7
[ ![ GitHub Tests Action Status] ( https://img.shields.io/github/actions/workflow/status/ageekdev/laravel-num/run-tests.yml?label=tests&style=flat-square )] ( https://github.com/ageekdev/laravel-num/actions/workflows/run-tests.yml )
7
8
[ ![ Total Downloads] ( https://img.shields.io/packagist/dt/ageekdev/laravel-num.svg?style=flat-square )] ( https://packagist.org/packages/ageekdev/laravel-num )
8
9
Original file line number Diff line number Diff line change 18
18
}
19
19
],
20
20
"require" : {
21
- "php" : " ^8.0|^8.1|^8.2 " ,
22
- "illuminate/support" : " ^9.0|^10.0"
21
+ "php" : " ^8.1 " ,
22
+ "illuminate/support" : " ^9.0|^10.0|^11.0 "
23
23
},
24
24
"require-dev" : {
25
25
"laravel/pint" : " ^1.5" ,
26
26
"phpstan/extension-installer" : " ^1.1" ,
27
27
"phpstan/phpstan-deprecation-rules" : " ^1.0" ,
28
28
"phpstan/phpstan-phpunit" : " ^1.0" ,
29
- "nunomaduro/collision" : " ^5.11|^6.2|^7.0" ,
30
- "nunomaduro/larastan" : " ^2.0" ,
31
- "orchestra/testbench" : " ^7.6|^8.0" ,
29
+ "larastan/larastan" : " ^2.0" ,
30
+ "orchestra/testbench" : " ^7.31|^8.11|^9.0" ,
32
31
"pestphp/pest" : " ^1.21|^2.0" ,
33
- "pestphp/pest-plugin-laravel" : " ^1.2 |^2.0" ,
32
+ "pestphp/pest-plugin-laravel" : " ^1.4 |^2.0" ,
34
33
"roave/security-advisories" : " dev-latest"
35
34
},
36
35
"autoload" : {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class Num
15
15
*
16
16
* Supported Languages: "Myanmar", "English", "Thai"
17
17
*/
18
- public function convert (int |string |null $ string , string $ to = 'en ' , string $ from = null ): ?string
18
+ public function convert (int |string |null $ string , string $ to = 'en ' , ? string $ from = null ): ?string
19
19
{
20
20
if ($ string === null || $ string === '' ) {
21
21
return $ string ;
Original file line number Diff line number Diff line change 8
8
*
9
9
* Support Language: "Myanmar", "English", "Thai"
10
10
*/
11
- function num_convert (int |string |null $ string , string $ to = 'en ' , string $ from = null ): ?string
11
+ function num_convert (int |string |null $ string , string $ to = 'en ' , ? string $ from = null ): ?string
12
12
{
13
13
return Num::convert ($ string , $ to , $ from );
14
14
}
You can’t perform that action at this time.
0 commit comments