From 1ea83e518bed941925b000932d81f4288f5e75c6 Mon Sep 17 00:00:00 2001 From: Josh Bonfield Date: Wed, 15 Jul 2020 15:51:01 +0100 Subject: [PATCH] Set the resource controller to null by default --- src/Resources/Resource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/Resource.php b/src/Resources/Resource.php index de36acb4..8e497c44 100644 --- a/src/Resources/Resource.php +++ b/src/Resources/Resource.php @@ -12,9 +12,9 @@ abstract class Resource implements ResourceInterface protected $attributes = []; /** - * @var ResourceControllerInterface $resourceController + * @var ResourceControllerInterface|null $resourceController */ - protected $resourceController; + protected $resourceController = null; public static function getName() {