We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2a67e commit 9b464fdCopy full SHA for 9b464fd
src/RobotLoader/RobotLoader.php
@@ -397,6 +397,9 @@ public function setAutoRefresh(bool $on = true): static
397
*/
398
public function setTempDirectory(string $dir): static
399
{
400
+ if (!FileSystem::isAbsolute($dir)) {
401
+ throw new Nette\InvalidArgumentException("Temporary directory must be absolute, '$dir' given.");
402
+ }
403
FileSystem::createDir($dir);
404
$this->tempDirectory = $dir;
405
return $this;
0 commit comments