From d9377e9bc23ec05a013757ed792363c53c98e20a Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Mon, 3 Jun 2024 15:52:55 +0330 Subject: [PATCH] fix: access modifier scope --- src/Abstracts/Transformers/Transformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);