protected function isHashMapType(Type $type) { return $type instanceof ObjectType && (!$type->hasClass() || $type->getClassFQN() === 'stdClass'); }