Download the PHP package boesing/psalm-plugin-stringf without Composer
On this page you can find all versions of the php package boesing/psalm-plugin-stringf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boesing/psalm-plugin-stringf
More information about boesing/psalm-plugin-stringf
Files in boesing/psalm-plugin-stringf
Package psalm-plugin-stringf
Short Description Psalm plugin to work with `sprintf`, `printf`, `sscanf` and `fscanf`.
License BSD-3-Clause
Informations about the package psalm-plugin-stringf
Psalm Plugin Stringf
This plugin provides additional checks to the built-in sprintf, printf, sscanf and fscanf function usage.
Installation
Require composer dev-dependency
Run Psalm-Plugin Binary
Features
- Parses
sprintfandprintfarguments to verify if the number of passed arguments matches the amount of specifiers - Verifies if the return value of
sprintfmight be anon-empty-string - Verifies possibly invalid argument of
sprintfandprintf(experimental) - Verifies unnecessary function calls of
sprintfandprintf(experimental)
Experimental
This plugin also provides experimental features.
Experimental features can be enabled by extending the plugin configuration as follows:
Report Possibly Invalid Argument for Specifier
The ReportPossiblyInvalidArgumentForSpecifier experimental feature will report PossiblyInvalidArgument errors for
arguments used with sprintf or printf. Here are some examples:
Report Unnecessary Function Calls
The ReportUnnecessaryFunctionCalls experimental feature will report UnnecessaryFunctionCall errors for
function calls to sprintf or printf which can be omitted. Here are some examples:
Release Versioning Disclaimer
This plugin won't follow semantic versioning even tho the version numbers state to be semantic versioning compliant. The source code of this plugin is not meant to used like library code and therefore MUST be treated as internal code.
- This package will raise dependency requirements whenever necessary.
- If there is a new major version of psalm, this plugin MAY migrate to that version but won't be early adopter.
- If there is a new PHP minor/major version which is not supported by this library, this library MAY migrate to that version but won't be early adopter.
So to summarize: If your project depends on the latest shiny versions of either Psalm or PHP, this plugin is not for you. If you can live with that, feel free to install. Demands in any way will be either ignored or handled whenever I feel I want to spend time on it.
All versions of psalm-plugin-stringf with dependencies
ext-simplexml Version *
vimeo/psalm Version ^4.30 || ^5.0
webmozart/assert Version ^1.11