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)) {