thecodingmachine/phpstan-safe-rule
PHPStan rule set that flags calls to “unsafe” PHP functions that can return false on failure and suggests using the thecodingmachine/safe equivalents that throw exceptions, helping enforce safer, exception-based error handling in your codebase.
Full Changelog: https://github.com/thecodingmachine/phpstan-safe-rule/compare/v1.4.2...v1.4.3
preg_replace_callback return type by @mRoca in https://github.com/thecodingmachine/phpstan-safe-rule/pull/60Full Changelog: https://github.com/thecodingmachine/phpstan-safe-rule/compare/v1.4.1...v1.4.2
JSON_THROW_ON_ERROR for json_ functions as "Safe" by @shish in https://github.com/thecodingmachine/phpstan-safe-rule/pull/56Full Changelog: https://github.com/thecodingmachine/phpstan-safe-rule/compare/v1.4.0...v1.4.1
preg_match so that it also applies to Safe\preg_match (ie, the $matches array is now accurately typed to match the regex pattern used, rather than being a generic ?array)Full Changelog: https://github.com/thecodingmachine/phpstan-safe-rule/compare/v1.3.1...v1.4.0
Same as v1.3.0, but marked compatible with Safe v3.0.0
This new release brings support for PHPStan 2.0 (and drops support for PHPStan 1.0)
Full Changelog: https://github.com/thecodingmachine/phpstan-safe-rule/compare/v1.2.0...v1.3.0
Full Changelog: https://github.com/thecodingmachine/phpstan-safe-rule/compare/v1.1.0...v1.2.0
New feature:
new DateTime" and "new DateTimeImmutable" and proposes using the Safe variant of those classes instead.This new version:
Improvements:
Bugfix release:
This release targets PHPStan 0.10.x and Safe 0.1.x
How can I help you explore Laravel packages today?