for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Php7to5\Exceptions;
use Exception;
class InvalidArgument extends Exception
{
/**
* @param string $directoryName
*
* @return \Spatie\Php7to5\Exceptions\InvalidArgument
*/
public static function directoryDoesNotExist($directoryName)
return new static("Directory `{$directoryName}` does not exist");
}
* @param string $fileName
public static function fileDoesNotExist($fileName)
return new static("File `{$fileName}` does not exist");
public static function directoryIsRequired()
return new static('A directory must be specified');