Closed BenMorel closed 5 years ago
file_get_contents()
false
??
=> right now, when file_get_contents() fails, it is not converted to '', but false is passed to the constructor; this only works because strict_types is off, and the value is implicitly converted to string due to the type-hint.
''
strict_types
string
Thanks!
file_get_contents()
returnsfalse
on failure??
operator only handles null values=> right now, when
file_get_contents()
fails, it is not converted to''
, butfalse
is passed to the constructor; this only works becausestrict_types
is off, and the value is implicitly converted tostring
due to the type-hint.