safe icon indicating copy to clipboard operation
safe copied to clipboard

All PHP functions, rewritten to throw exceptions instead of returning false

Results 109 safe issues
Sort by recently updated
recently updated
newest added

### Function URL https://www.php.net/manual/en/function.fpm-get-status.php ### PHP Version 8.1 ### Safe Version 3.2.0 ### Extra Info `fpm_get_status()` wrapper is missing on PHP 8.1. Since its first implementation, it may return `false`...

missing function

This is similar to #422 but I want to raise the issue because it seems to be an inherent issue with the architecture of the package that potentially prohibits its...

When using `composer-require-checker` with in a project with safe 3.0 I get these unknown symbols: ``` ComposerRequireChecker 4.16.1@2449a6298a0c39d940287d5d3afaf05a6f80fd0c The following 16 unknown symbols were found: +----------------------------+--------------------+ | Unknown Symbol |...

question

`phpcs` fixes a few things, but leaves other things inconsistent; `php-cs-fixer` is preferred by at least two maintainers Making this a task instead of just doing it because `php-cs-fixer` doesn't...

generator

As of php 8.0, union type hints are allowed, so we can remove the code which rejected them due to 7.X incompatibility (See `PhpStanType::getSignatureType()`)

enhancement

Status quo as of this writing: If a function needs a safe wrapper in 8.1, but is natively safe from 8.2 onwards, then we generate a safe wrapper for 8.1...

question

When the auto-regen workflow updates the files, it doesn't clear the cache, so any new PRs will still use the old cached data and report that they are out of...

generator

For example, `preg_split` should have its return type as `list` and not merely `list`. A more complex case is `preg_replace`, where the return type depends on the argument type. [PHPStan...