This repository was archived by the owner on Aug 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +36
-52
lines changed
Expand file tree Collapse file tree 4 files changed +36
-52
lines changed Original file line number Diff line number Diff line change 66
77matrix :
88 include :
9- - php : 7.2
10- env : LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
11- - php : 7.2
12- env : LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
13- - php : 7.3
14- env : LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
15- - php : 7.3
16- env : LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
17- - php : 7.4snapshot
18- env : LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-lowest'
19- - php : 7.4snapshot
20- env : LARAVEL='5.8.*' TESTBENCH='3.8.*' COMPOSER_FLAGS='--prefer-stable'
21- - php : 7.2
22- env : LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-lowest'
23- - php : 7.2
24- env : LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-stable'
25- - php : 7.3
26- env : LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-lowest'
27- - php : 7.3
28- env : LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-stable'
29- - php : 7.4snapshot
30- env : LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-lowest'
31- - php : 7.4snapshot
32- env : LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-stable'
9+ - php : 7.4
10+ env : LARAVEL='^7.0' TESTBENCH='^5.0' COMPOSER_FLAGS='--prefer-lowest'
11+ - php : 7.4
12+ env : LARAVEL='^7.0' TESTBENCH='^5.0' COMPOSER_FLAGS='--prefer-stable'
13+ - php : 8.0
14+ env : LARAVEL='^7.0' TESTBENCH='^5.0' COMPOSER_FLAGS='--prefer-lowest'
15+ - php : 8.0
16+ env : LARAVEL='^7.0' TESTBENCH='^5.0' COMPOSER_FLAGS='--prefer-stable'
17+ - php : 7.4
18+ env : LARAVEL='^8.0' TESTBENCH='^6.0' COMPOSER_FLAGS='--prefer-lowest'
19+ - php : 7.4
20+ env : LARAVEL='^8.0' TESTBENCH='^6.0' COMPOSER_FLAGS='--prefer-stable'
21+ - php : 8.0
22+ env : LARAVEL='^8.0' TESTBENCH='^6.0' COMPOSER_FLAGS='--prefer-lowest'
23+ - php : 8.0
24+ env : LARAVEL='^8.0' TESTBENCH='^6.0' COMPOSER_FLAGS='--prefer-stable'
3325 fast_finish : true
34- allow_failures :
35- - php : 7.4snapshot
3626
3727before_install :
3828 - composer config discard-changes true
Original file line number Diff line number Diff line change 1414 }
1515 ],
1616 "require" : {
17- "php" : " ^7.1 " ,
18- "moontoast/math " : " ^1.1 "
17+ "php" : " ^7.4|^8 " ,
18+ "illuminate/support " : " ^7|^8 "
1919 },
2020 "autoload" : {
2121 "psr-4" : {
2828 }
2929 },
3030 "require-dev" : {
31- "orchestra/testbench" : " ^3.8 " ,
32- "phpunit/phpunit" : " ^8.3 "
31+ "orchestra/testbench" : " ^6 " ,
32+ "phpunit/phpunit" : " ^9 "
3333 }
3434}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3- xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/8 .3/phpunit.xsd"
3+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9 .3/phpunit.xsd"
44 bootstrap =" vendor/autoload.php"
55 executionOrder =" depends,defects"
6- forceCoversAnnotation =" true"
7- beStrictAboutCoversAnnotation =" true"
86 beStrictAboutOutputDuringTests =" true"
97 beStrictAboutTodoAnnotatedTests =" true"
108 verbose =" true" >
11-
12- <testsuites >
13- <testsuite name =" default" >
14- <directory suffix =" Test.php" >tests</directory >
15- </testsuite >
16- </testsuites >
17-
18- <filter >
19- <whitelist processUncoveredFilesFromWhitelist =" true" >
20- <directory suffix =" .php" >src</directory >
21- </whitelist >
22- </filter >
23-
24- <php >
25- <env name =" APP_KEY" value =" AckfSECXIvnK5r28GVIWUAxmbBSjTsmF" />
26- </php >
9+ <coverage processUncoveredFiles =" true" >
10+ <include >
11+ <directory suffix =" .php" >src</directory >
12+ </include >
13+ </coverage >
14+ <testsuites >
15+ <testsuite name =" default" >
16+ <directory suffix =" Test.php" >tests</directory >
17+ </testsuite >
18+ </testsuites >
19+ <php >
20+ <env name =" APP_KEY" value =" AckfSECXIvnK5r28GVIWUAxmbBSjTsmF" />
21+ </php >
2722</phpunit >
Original file line number Diff line number Diff line change 22
33namespace Ryancco \HasUuidRouteKey ;
44
5- use Illuminate \Database \Eloquent \Model ;
65use Illuminate \Support \Str ;
76use Ramsey \Uuid \Exception \InvalidUuidStringException ;
87use Ramsey \Uuid \Uuid ;
@@ -21,7 +20,7 @@ public function getUuidAttribute(): ?UuidInterface
2120 {
2221 $ attribute = $ this ->attributes [$ this ->getRouteKeyName ()] ?? null ;
2322
24- return !$ attribute ? null : Uuid::fromString ($ attribute );
23+ return ! $ attribute ? null : Uuid::fromString ($ attribute );
2524 }
2625
2726 /**
@@ -31,7 +30,7 @@ public function getUuidAttribute(): ?UuidInterface
3130 */
3231 public function setUuidAttribute ($ uuid ): void
3332 {
34- if (!$ uuid instanceof UuidInterface) {
33+ if (! $ uuid instanceof UuidInterface) {
3534 $ uuid = Uuid::fromString ($ uuid );
3635 }
3736
You can’t perform that action at this time.
0 commit comments