File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ protected function tag(string $file)
112112 break ;
113113
114114 default :
115- throw AssetsException::forUnsupportExtension ($ extension );
115+ throw AssetsException::forUnsupportedExtension ($ extension );
116116
117117 endswitch ;
118118 }
Original file line number Diff line number Diff line change 55
66class AssetsException extends FrameworkException implements ExceptionInterface
77{
8- public static function forUnsupportExtension (string $ extension = null )
8+ public static function forUnsupportedExtension (string $ extension = null )
99 {
10- return new static (" Unsupported file extension: ' { $ extension} ' " );
10+ return new static (lang ( ' Assets.unsupportedExtension ' , [ $ extension]) );
1111 }
1212}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+ 'unsupportedExtension ' => 'Unsupported file extension: "{0}" ' ,
5+ ];
You can’t perform that action at this time.
0 commit comments