Skip to content

Commit b6ed711

Browse files
sy-recordsliu21st
authored andcommitted
Update filter method type hint from \think\Callable to callable
1 parent 9a27be9 commit b6ed711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/think/facade/View.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
// +----------------------------------------------------------------------
34
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
45
// +----------------------------------------------------------------------
@@ -20,7 +21,7 @@
2021
* @mixin \think\View
2122
* @method static \think\View engine(string $type = null) 获取模板引擎
2223
* @method static \think\View assign(string|array $name, mixed $value = null) 模板变量赋值
23-
* @method static \think\View filter(\think\Callable $filter = null) 视图过滤
24+
* @method static \think\View filter(callable $filter = null) 视图过滤
2425
* @method static string fetch(string $template = '', array $vars = []) 解析和获取模板内容 用于输出
2526
* @method static string display(string $content, array $vars = []) 渲染内容输出
2627
* @method static mixed __set(string $name, mixed $value) 模板变量赋值

0 commit comments

Comments
 (0)