Explorar o código

accept also empty arrays to reset the exclusionStrategy

Christian Stocker %!s(int64=13) %!d(string=hai) anos
pai
achega
37ec1ad942
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Serializer/Serializer.php

+ 1 - 1
Serializer/Serializer.php

@@ -57,7 +57,7 @@ class Serializer implements SerializerInterface
     
     public function setGroups($groups)
     {
-        if (null === $groups) {
+        if (!$groups) {
             $this->exclusionStrategy = null;
 
             return;