File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,12 +152,20 @@ public function getValInfo($value, $isRow = false)
152152 break ;
153153 }
154154 }
155+ $ className = null ;
156+ if ($ type === Type::TYPE_OBJECT ) {
157+ $ className = $ value instanceof Abstraction
158+ ? $ value ['className ' ]
159+ : \get_class ($ value );
160+ } elseif ($ type === Type::TYPE_IDENTIFIER && $ value instanceof Abstraction) {
161+ // Extract class name from identifier value (e.g., "PDO::PARAM_STR" -> "PDO")
162+ $ identifierValue = $ value ['value ' ];
163+ if (\is_string ($ identifierValue ) && \strpos ($ identifierValue , ':: ' ) !== false ) {
164+ $ className = \explode (':: ' , $ identifierValue )[0 ];
165+ }
166+ }
155167 return array (
156- 'className ' => $ type === Type::TYPE_OBJECT
157- ? ($ value instanceof Abstraction
158- ? $ value ['className ' ]
159- : \get_class ($ value ))
160- : null ,
168+ 'className ' => $ className ,
161169 'iterable ' => $ isIterable ,
162170 'type ' => $ type ,
163171 );
You can’t perform that action at this time.
0 commit comments