From dad946ac2ee2379821842fc4d130e07f05a30d61 Mon Sep 17 00:00:00 2001 From: Andrew Nagy <564256+tm1000@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:05:41 -0800 Subject: [PATCH] Fix method getEnvironment return type Method getEnvironment can potentially return a null value --- src/Flagsmith.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Flagsmith.php b/src/Flagsmith.php index 186a064..16058fa 100644 --- a/src/Flagsmith.php +++ b/src/Flagsmith.php @@ -256,9 +256,9 @@ public function withSkipCache(bool $skipCache): self /** * Get the environment model. - * @return EnvironmentModel + * @return EnvironmentModel|null */ - public function getEnvironment(): EnvironmentModel + public function getEnvironment(): ?EnvironmentModel { return $this->environment; }