diff --git a/src/traits/HandlesProfiles.php b/src/traits/HandlesProfiles.php index f0f1d10..7eafce0 100644 --- a/src/traits/HandlesProfiles.php +++ b/src/traits/HandlesProfiles.php @@ -94,7 +94,7 @@ public function getForceDestinationProfileWithDefault(string $defaultProfile): s */ public function setForceDestinationProfile(string $forceDestinationProfile) { - if (!in_array($forceDestinationProfile, $this->getSupportedProfiles())) { + if ($this->isSupportedProfile($forceDestinationProfile)) { return $this; }