From 1ec582d1ac900e40ccd9e7f8fa3da128e5c9b788 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Thu, 3 Apr 2025 19:37:58 +0000 Subject: [PATCH] - Comparison made before transforming to string was skipping nulls and not nulls but empty --- src/Repository.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Repository.php b/src/Repository.php index 37e2c0c..2d28929 100644 --- a/src/Repository.php +++ b/src/Repository.php @@ -319,6 +319,10 @@ class Repository implements RepositoryInterface } } + if (is_null($e1) || is_null($e2)) { + return $e1 !== $e2; + } + return (string) $e1 !== (string) $e2; }); }