@@ -77,7 +77,7 @@ public function getAbstraction($obj, $method = null, &$hist = array())
7777 ),
7878 'extends ' => array (),
7979 'implements ' => $ reflector ->getInterfaceNames (),
80- 'isExcluded ' => $ hist && \in_array ($ className , $ this ->abstracter ->getCfg ('objectsExclude ' )),
80+ 'isExcluded ' => \in_array ($ className , $ this ->abstracter ->getCfg ('objectsExclude ' )),
8181 'isRecursion ' => \in_array ($ obj , $ hist , true ),
8282 'methods ' => array (), // if !collectMethods, may still get ['__toString']['returnValue']
8383 'phpDoc ' => array (
@@ -97,12 +97,12 @@ public function getAbstraction($obj, $method = null, &$hist = array())
9797 'hist ' => $ hist ,
9898 ));
9999 $ keysTemp = \array_flip (array ('collectPropertyValues ' ,'reflector ' ,'hist ' ));
100- if (\array_filter ( array ( $ abs ['isRecursion ' ], $ abs [ ' isExcluded ' ])) ) {
100+ if ($ abs ['isRecursion ' ]) {
101101 return \array_diff_key ($ abs ->getValues (), $ keysTemp );
102102 }
103103 /*
104104 debug.objAbstractStart subscriber may
105- set isExcluded to true (but not to false)
105+ set isExcluded
106106 set collectPropertyValues (boolean)
107107 set collectMethods (boolean)
108108 set stringified
@@ -167,7 +167,9 @@ private function getAbstractionDetails(Event $abs)
167167 public function onStart (Event $ event )
168168 {
169169 $ obj = $ event ->getSubject ();
170- if ($ obj instanceof \mysqli && ($ obj ->connect_errno || !$ obj ->stat )) {
170+ if ($ obj instanceof \DateTime || $ obj instanceof \DateTimeImmutable) {
171+ $ event ['stringified ' ] = $ obj ->format (\DateTime::ISO8601 );
172+ } elseif ($ obj instanceof \mysqli && ($ obj ->connect_errno || !$ obj ->stat )) {
171173 // avoid "Property access is not allowed yet"
172174 $ event ['collectPropertyValues ' ] = false ;
173175 }
@@ -183,9 +185,7 @@ public function onStart(Event $event)
183185 public function onEnd (Event $ event )
184186 {
185187 $ obj = $ event ->getSubject ();
186- if ($ obj instanceof \DateTime || $ obj instanceof \DateTimeImmutable) {
187- $ event ['stringified ' ] = $ obj ->format (\DateTime::ISO8601 );
188- } elseif ($ obj instanceof \DOMNodeList) {
188+ if ($ obj instanceof \DOMNodeList) {
189189 // for reasons unknown, DOMNodeList's properties are invisible to reflection
190190 $ event ['properties ' ]['length ' ] = \array_merge (static ::$ basePropInfo , array (
191191 'type ' => 'integer ' ,
0 commit comments