1 | <?php |
||
9 | class Facade |
||
10 | { |
||
11 | |||
12 | protected static $bind = []; |
||
13 | |||
14 | /** |
||
15 | * 绑定类的静态代理 |
||
16 | * @static |
||
17 | * @access public |
||
18 | * @param string $name 代理名 |
||
19 | * @param string $class 实际类名 |
||
20 | * @return object |
||
21 | */ |
||
22 | public static function bind($name, $class = null) |
||
30 | |||
31 | /** |
||
32 | * 创建Facade实例 |
||
33 | * @static |
||
34 | * @access protected |
||
35 | * @param string $class 类名或标识 |
||
36 | * @param array $args 变量 |
||
37 | * @return object |
||
38 | */ |
||
39 | protected static function createFacade($class = '', $args = []) |
||
50 | |||
51 | protected static function getFacadeClass() |
||
53 | /** |
||
54 | * 带参数实例化当前Facade类 |
||
55 | * @access public |
||
56 | * @return object |
||
57 | */ |
||
58 | public static function instance(...$args) |
||
62 | |||
63 | /** |
||
64 | * 指定某个Facade类进行实例化 |
||
65 | * @access public |
||
66 | * @param string $class 类名或者标识 |
||
67 | * @param array $args 变量 |
||
68 | * @return object |
||
69 | */ |
||
70 | public static function make($class, $args = []) |
||
74 | |||
75 | // 调用实际类的方法 |
||
76 | public static function __callStatic($method, $params) |
||
80 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.