It seems like $file defined by \Classy\Hierarchy::get_a..._file('view', $request) on line 32 can also be of type false; however, Classy\View::get_blade_view() does only seem to accept string, did you maybe forget to handle an error condition?
This check looks for type mismatches where the missing type is false. This
is usually indicative of an error condtion.
This function either returns a new DateTime object or false, if there was an error.
This is a typical pattern in PHP programming to show that an error has occurred without
raising an exception. The calling code should check for this returned false
before passing on the value to another function or method that may not
be able to handle a false.
Loading history...
35
36
return $view;
37
38
}
39
40
/**
41
* Replaces all slashes with dots.
42
*
43
* @param string $view View's name.
44
*
45
* @return string
46
*/
47
public static function get_blade_view( $view ) {
48
49
return str_replace( '/', '.', $view );
50
51
}
52
53
/**
54
* Returns list of theme page templates.
55
*
56
* @return array
57
*/
58
public static function get_page_templates_list() {
This check looks for type mismatches where the missing type is
false
. This is usually indicative of an error condtion.Consider the follow example
This function either returns a new
DateTime
object or false, if there was an error. This is a typical pattern in PHP programming to show that an error has occurred without raising an exception. The calling code should check for this returnedfalse
before passing on the value to another function or method that may not be able to handle afalse
.