Skip to content

[wip] enable phpstan-safe-rule #1604

[wip] enable phpstan-safe-rule

[wip] enable phpstan-safe-rule #1604

Triggered via pull request October 11, 2024 19:50
@shishshish
opened #1293
pr1293
Status Failure
Total duration 39s
Artifacts

tests.yml

on: pull_request
Matrix: test
Matrix: upgrade
Format
13s
Format
Static Analysis
27s
Static Analysis
Publish
0s
Publish
Fit to window
Zoom out
Zoom in

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.