code: public static function debugInfo($a, array $excludedProperties = [])
      {
          $a = Caster::castObject($a, \get_class($a), false);
          foreach ($a as $k => $v) {
              if (\in_array($k, $excludedProperties, true)) {
                  $a[$k] = new CutStub($a[$k]);
              }
          }
  
          return $a;
      }
docs: @param object $a
  @param array  $excludedProperties
  
  @return array