Skip to content

Commit 7ca7980

Browse files
Merge branch '7.4' into 8.0
* 7.4: (21 commits) [ObjectMapper] lazy loading [Filesystem] Unify logic for isAbsolute() in Path [DependencyInjection] Include return type in AppReference shape [Finder] Make method calls explicit in ExcludeDirectoryFilterIterator [Cache] Remove unset call on undefined variable in PhpArrayAdapter [Twig] Ensure WrappedTemplatedEmail::getReturnPath() returns a string [Routing] Simplify importing routes defined on controller services Fix tests [DependendcyInjection] Improve shape for "from_callable" definitions [PHPDoc] Fix various PHPDoc syntax errors [Console] Add missing VERBOSITY_SILENT case in CommandDataCollector [Notifier] Remove unused $transportName argument in EmailChannel::notify() [Translation] Remove an unused argument passed to parseNode() method [HttpClient] Reject 3xx pushed responses [Serializer] Use Asia/Tokyo instead of Japan in tests [ProxyManagerBridge] Remove comment that reference github discussion [JsonPath] Remove unused "nothing" property from JsonCrawler [ErrorHandler] Improve PHPDoc precision in SerializerErrorRenderer [Routing] Fix matching the "0" URL [Form] Fix EnumType choice_label logic for grouped choices ...
2 parents 62ea9bf + 226358a commit 7ca7980

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

JsonCrawler.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
*/
3131
final class JsonCrawler implements JsonCrawlerInterface
3232
{
33-
private static \stdClass $nothing;
34-
3533
private const RFC9535_FUNCTIONS = [
3634
'length' => true,
3735
'count' => true,
@@ -831,8 +829,8 @@ private function compare(mixed $left, mixed $right, string $operator): bool
831829

832830
private function compareEquality(mixed $left, mixed $right): bool
833831
{
834-
$leftIsNothing = $left === Nothing::Nothing;
835-
$rightIsNothing = $right === Nothing::Nothing;
832+
$leftIsNothing = Nothing::Nothing === $left;
833+
$rightIsNothing = Nothing::Nothing === $right;
836834

837835
if (
838836
$leftIsNothing && $rightIsNothing

0 commit comments

Comments
 (0)