zonuexe / phpstan-safephp-lite
A simple PHPStan extension for Safe PHP functions
0.0.1
2024-03-25 12:19 UTC
Requires (Dev)
- php: >=8.2
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^11.0
- symplify/easy-coding-standard: ^12.1
- thecodingmachine/safe: ^2.5
This package is auto-updated.
Last update: 2024-11-26 02:21:42 UTC
README
A simple PHPStan extension for Safe PHP(thecodingmachine/safe) functions.
What is the difference from phpstan-safe-rule?
thecodingmachine/phpstan-safe-rule, maintained by the developers of Safe PHP, contains rules that recommend replacing built-in functions with Safe, but it hasn't been updated in a while.
This package only provides typing for Safe functions, which wraps the DynamicReturnType extension shipped with PHPStan. If you update PHPStan in the future, the Safe function typing will automatically be improved.
Copyright
This package is released under the Apache License 2.0.
Copyright 2024 USAMI Kenta
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.