Commit 601f6a22 authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Add debugInfo

parent 445ffa21
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -162,4 +162,11 @@ abstract class AbstractPath implements PathInterface
    {
        return iterator_to_array($this->components, false);
    }

    public function __debugInfo(): array
    {
        return [
            'path' => $this->toString(),
        ];
    }
}