File tree Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change 99use Illuminate \Support \Collection ;
1010use TiMacDonald \JsonApi \Support \Fields ;
1111
12+ /**
13+ * @internal
14+ */
1215trait 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 )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments