[wip] enable phpstan-safe-rule #1604
Annotations
10 errors
Static Analysis:
core/cacheengine.php#L118
Function parse_url is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\parse_url;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/command_builder.php#L60
Function exec is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\exec;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/dbengine.php#L173
Function ini_set is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\ini_set;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/imageboard/image.php#L632
Function unlink is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\unlink;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/imageboard/image.php#L633
Function unlink is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\unlink;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/install.php#L201
Function mkdir is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\mkdir;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/install.php#L202
Function chmod is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\chmod;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/install.php#L209
Function getmyuid is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\getmyuid;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/install.php#L321
Function mkdir is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\mkdir;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|
Static Analysis:
core/install.php#L324
Function file_put_contents is unsafe to use. It can return FALSE instead of throwing an exception. Please add 'use function Safe\file_put_contents;' at the beginning of the file to use the variant provided by the 'shish/safe' library.
|