mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Dev: change the return type for the exception.
This commit is contained in:
parent
2aa4bd54cc
commit
fbd6d94a50
@ -26,7 +26,7 @@ class PublisherException extends FrameworkException
|
||||
* @param string $from The source file
|
||||
* @param string $to The destination file
|
||||
*/
|
||||
public static function forCollision(string $from, string $to): PublisherException
|
||||
public static function forCollision(string $from, string $to): self
|
||||
{
|
||||
return new static(lang('Publisher.collision', [filetype($to), $from, $to]));
|
||||
}
|
||||
@ -34,7 +34,7 @@ class PublisherException extends FrameworkException
|
||||
/**
|
||||
* Throws when given a destination that is not in the list of allowed directories.
|
||||
*/
|
||||
public static function forDestinationNotAllowed(string $destination): PublisherException
|
||||
public static function forDestinationNotAllowed(string $destination): self
|
||||
{
|
||||
return new static(lang('Publisher.destinationNotAllowed', [$destination]));
|
||||
}
|
||||
@ -42,7 +42,7 @@ class PublisherException extends FrameworkException
|
||||
/**
|
||||
* Throws when a file fails to match the allowed pattern for its destination.
|
||||
*/
|
||||
public static function forFileNotAllowed(string $file, string $directory, string $pattern): PublisherException
|
||||
public static function forFileNotAllowed(string $file, string $directory, string $pattern): self
|
||||
{
|
||||
return new static(lang('Publisher.fileNotAllowed', [$file, $directory, $pattern]));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user