src/Reflection/Adapter/ReflectionObject.php
public function getTraits()
    {
        $traits = $this->betterReflectionObject->getTraits();

        $wrappedTraits = [];
        foreach ($traits as $key => $trait) {
            $wrappedTraits[$key] = new ReflectionClass($trait);
        }

        return $wrappedTraits;
    }
public function getTraits()
    {
        $traits = $this->betterReflectionObject->getTraits();

        $wrappedTraits = [];
        foreach ($traits as $key => $trait) {
            $wrappedTraits[$key] = new ReflectionClass($trait);
        }

        return $wrappedTraits;
    }
{@inheritDoc}