Commit b6a0b210 authored by Richard Weinhold's avatar Richard Weinhold 🎩

improves __toString() debug-informations

parent a345ba96
Pipeline #5347 passed with stages
in 9 seconds
......@@ -206,4 +206,12 @@ class Command extends Directory
{
return $this->lastExitCode;
}
/**
* @return string
*/
public function __toString(): string
{
return sprintf('%s binary: "%s"', parent::__toString(), $this->bin);
}
}
......@@ -73,7 +73,7 @@ abstract class Storage
*/
public function __toString(): string
{
return sprintf('[Storage: %s]', trim(str_replace(self::class, '', get_class($this)), '/'));
return sprintf('[Storage: %s]', trim(str_replace(self::class, '', get_class($this)), '\\'));
}
/**
......
......@@ -329,4 +329,12 @@ class Flysystem extends Storage
{
return strpos($this->path, '.') === 0;
}
/**
* @return string
*/
public function __toString(): string
{
return sprintf('%s/[Adapter: %s] at: "%s"', parent::__toString(), get_class($this->flysystem->getAdapter()), $this->path);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment