Skip to content

Commit fbd6d94

Browse files
committed
Dev: change the return type for the exception.
1 parent 2aa4bd5 commit fbd6d94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

system/Publisher/Exceptions/PublisherException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,23 @@ class PublisherException extends FrameworkException
2626
* @param string $from The source file
2727
* @param string $to The destination file
2828
*/
29-
public static function forCollision(string $from, string $to): PublisherException
29+
public static function forCollision(string $from, string $to): self
3030
{
3131
return new static(lang('Publisher.collision', [filetype($to), $from, $to]));
3232
}
3333

3434
/**
3535
* Throws when given a destination that is not in the list of allowed directories.
3636
*/
37-
public static function forDestinationNotAllowed(string $destination): PublisherException
37+
public static function forDestinationNotAllowed(string $destination): self
3838
{
3939
return new static(lang('Publisher.destinationNotAllowed', [$destination]));
4040
}
4141

4242
/**
4343
* Throws when a file fails to match the allowed pattern for its destination.
4444
*/
45-
public static function forFileNotAllowed(string $file, string $directory, string $pattern): PublisherException
45+
public static function forFileNotAllowed(string $file, string $directory, string $pattern): self
4646
{
4747
return new static(lang('Publisher.fileNotAllowed', [$file, $directory, $pattern]));
4848
}

0 commit comments

Comments
 (0)