Skip to content

Commit bce7161

Browse files
committed
Remove "maximalAttributes" method
1 parent 7768fe5 commit bce7161

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

src/Concerns/Attributes.php

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use Illuminate\Support\Collection;
1010
use TiMacDonald\JsonApi\Support\Fields;
1111

12+
/**
13+
* @internal
14+
*/
1215
trait Attributes
1316
{
14-
/**
15-
* @internal
16-
*/
1717
private static bool $minimalAttributes = false;
1818

1919
/**
@@ -25,19 +25,6 @@ public static function minimalAttributes($value = true)
2525
}
2626

2727
/**
28-
* @api
29-
* @infection-ignore-all
30-
*
31-
* @return void
32-
*/
33-
public static function maximalAttributes()
34-
{
35-
self::$minimalAttributes = false;
36-
}
37-
38-
/**
39-
* @internal
40-
*
4128
* @return Collection<string, mixed>
4229
*/
4330
private function requestedAttributes(Request $request)
@@ -49,8 +36,6 @@ private function requestedAttributes(Request $request)
4936
}
5037

5138
/**
52-
* @internal
53-
*
5439
* @return Collection<string, mixed>
5540
*/
5641
private function resolveAttributes(Request $request)
@@ -63,8 +48,6 @@ private function resolveAttributes(Request $request)
6348
}
6449

6550
/**
66-
* @internal
67-
*
6851
* @return array<int, string>|null
6952
*/
7053
private function requestedFields(Request $request)

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function tearDown(): void
2929
parent::tearDown();
3030

3131
JsonApiResource::resolveServerImplementationNormally();
32-
JsonApiResource::maximalAttributes();
32+
JsonApiResource::minimalAttributes(false);
3333
}
3434

3535
protected function assertValidJsonApi(TestResponse|string|array $data): void

0 commit comments

Comments
 (0)