Skip to content

Commit eec731c

Browse files
Reinandbrdv
authored andcommitted
Fix composer versions, remove unneeded tests
1 parent 05de792 commit eec731c

11 files changed

Lines changed: 165 additions & 791 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"require-dev": {
2525
"phpunit/phpunit": "^11.0",
2626
"orchestra/testbench": "^10.0",
27-
"laravel/pint": "^1.18"
27+
"laravel/pint": "^1.27"
2828
}
2929
}

composer.lock

Lines changed: 163 additions & 163 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Traits/Id.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,11 @@ private function getId(): int|string|null
2525
*/
2626
private function guessId(): int|string|null
2727
{
28-
return $this->idFromRegisterData()
29-
?? $this->fromRouteKey()
28+
return $this->fromRouteKey()
3029
?? $this->fromIdAttribute()
3130
?? null;
3231
}
3332

34-
private function idFromRegisterData(): int|string|null
35-
{
36-
return $this->registerData['id'] ?? null;
37-
}
38-
3933
private function fromRouteKey(): int|string|null
4034
{
4135
return method_exists($this->resource, 'getRouteKeyName')

tests/Resources/AccountResource.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

tests/Resources/AccountResourceCollection.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/Resources/CommentResource.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

tests/Resources/CommentResourceCollection.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/Resources/PostResource.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/Resources/PostResourceCollection.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/Unit/JsonApiResourceCollectionRegisterTest.php

Lines changed: 0 additions & 122 deletions
This file was deleted.

0 commit comments

Comments
 (0)