From ad5cacd6121fc896569b698f0a09e17f51653683 Mon Sep 17 00:00:00 2001 From: shisiying Date: Mon, 22 Jul 2019 11:21:38 +0800 Subject: [PATCH] fix:Compatiblity for PHP7.3 --- lib/PayPal/Core/PayPalConfigManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PayPal/Core/PayPalConfigManager.php b/lib/PayPal/Core/PayPalConfigManager.php index c341bb12..d3700b37 100644 --- a/lib/PayPal/Core/PayPalConfigManager.php +++ b/lib/PayPal/Core/PayPalConfigManager.php @@ -99,9 +99,9 @@ public function get($searchKey) return $this->configs[$searchKey]; } else { $arr = array(); - if ($searchKey !== '') { + if (!empty($searchKey)) { foreach ($this->configs as $k => $v) { - if (strstr($k, $searchKey)) { + if (strstr($k, (string)$searchKey)) { $arr[$k] = $v; } }