Skip to content

Commit 9c65b45

Browse files
committed
Fix: change the return type.
1 parent 4c9c3cb commit 9c65b45

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

system/View/Cell.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,8 @@ final protected function renderCell(BaseCell $instance, string $method, array $p
233233
* Returns the values from $params that match the parameters
234234
* for a method, in the order they are defined. This allows
235235
* them to be passed directly into the method.
236-
*
237-
* @return array
238236
*/
239-
private function getMethodParams(BaseCell $instance, string $method, array $params)
237+
private function getMethodParams(BaseCell $instance, string $method, array $params): array
240238
{
241239
$mountParams = [];
242240

system/View/Exceptions/ViewException.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,55 +16,55 @@
1616
class ViewException extends FrameworkException
1717
{
1818
/**
19-
* @return ViewException
19+
* @return static
2020
*/
2121
public static function forInvalidCellMethod(string $class, string $method)
2222
{
2323
return new static(lang('View.invalidCellMethod', ['class' => $class, 'method' => $method]));
2424
}
2525

2626
/**
27-
* @return ViewException
27+
* @return static
2828
*/
2929
public static function forMissingCellParameters(string $class, string $method)
3030
{
3131
return new static(lang('View.missingCellParameters', ['class' => $class, 'method' => $method]));
3232
}
3333

3434
/**
35-
* @return ViewException
35+
* @return static
3636
*/
3737
public static function forInvalidCellParameter(string $key)
3838
{
3939
return new static(lang('View.invalidCellParameter', [$key]));
4040
}
4141

4242
/**
43-
* @return ViewException
43+
* @return static
4444
*/
4545
public static function forNoCellClass()
4646
{
4747
return new static(lang('View.noCellClass'));
4848
}
4949

5050
/**
51-
* @return ViewException
51+
* @return static
5252
*/
5353
public static function forInvalidCellClass(?string $class = null)
5454
{
5555
return new static(lang('View.invalidCellClass', [$class]));
5656
}
5757

5858
/**
59-
* @return ViewException
59+
* @return static
6060
*/
6161
public static function forTagSyntaxError(string $output)
6262
{
6363
return new static(lang('View.tagSyntaxError', [$output]));
6464
}
6565

6666
/**
67-
* @return ViewException
67+
* @return static
6868
*/
6969
public static function forInvalidDecorator(string $className)
7070
{

0 commit comments

Comments
 (0)