diff --git a/Formatter/AbstractFormatter.php b/Formatter/AbstractFormatter.php index 978c719..17a421d 100644 --- a/Formatter/AbstractFormatter.php +++ b/Formatter/AbstractFormatter.php @@ -127,7 +127,7 @@ abstract class AbstractFormatter implements FormatterInterface { $array = array(); foreach ($collection as $coll) { - if('none' === $coll['annotation']->getSection()) { + if(is_null($coll['annotation']->getSection())) { $array[$coll['resource']][] = $coll['annotation']->toArray(); } else { $array[$coll['annotation']->getSection()][] = $coll['annotation']->toArray();