diff --git a/src/Abstracts/Transformers/Transformer.php b/src/Abstracts/Transformers/Transformer.php index f4f2dbfaf..963ebc72b 100644 --- a/src/Abstracts/Transformers/Transformer.php +++ b/src/Abstracts/Transformers/Transformer.php @@ -10,7 +10,7 @@ abstract class Transformer extends FractalTransformer { - public function nullableItem($data, $transformer, $resourceKey = null): Primitive|Item + protected function nullableItem($data, $transformer, $resourceKey = null): Primitive|Item { if (is_null($data)) { return $this->primitive(null);