From 9d4cb86d413efe387eae867e162c6f7f2b76134e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 16 Apr 2023 14:18:34 +0200 Subject: [PATCH] fix check in PersistentDataManager --- src/PersistentData/PersistentDataManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PersistentData/PersistentDataManager.php b/src/PersistentData/PersistentDataManager.php index aeb7949..627a783 100644 --- a/src/PersistentData/PersistentDataManager.php +++ b/src/PersistentData/PersistentDataManager.php @@ -57,7 +57,7 @@ class PersistentDataManager $value = current($data); $relation = key($relations); - if (strpos($key, '__') == false) { + if (strpos($key, '__') === false) { $method = 'set' . str_replace('_', '', ucwords($key, '_')); if (method_exists($model, $method) && isset($value)) {