PHPackages                             struggle-for-php/sfp-psalm-typed-local-variable-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. struggle-for-php/sfp-psalm-typed-local-variable-plugin

ActivePsalm-plugin[Testing &amp; Quality](/categories/testing)

struggle-for-php/sfp-psalm-typed-local-variable-plugin
======================================================

finding mismatch type assignment in function/method scope with psalm

0.2.0(5y ago)164761[4 PRs](https://github.com/struggle-for-php/sfp-psalm-typed-local-variable-plugin/pulls)MITPHPPHP ^7.4.3|^8

Since Aug 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/struggle-for-php/sfp-psalm-typed-local-variable-plugin)[ Packagist](https://packagist.org/packages/struggle-for-php/sfp-psalm-typed-local-variable-plugin)[ RSS](/packages/struggle-for-php-sfp-psalm-typed-local-variable-plugin/feed)WikiDiscussions 0.2.x Synced 1mo ago

READMEChangelog (5)Dependencies (7)Versions (12)Used By (0)

sfp-psalm-typed-local-variable-plugin
=====================================

[](#sfp-psalm-typed-local-variable-plugin)

finding mismatch type assignment in function/method scope with [psalm](https://psalm.dev/).

[![Packagist](https://camo.githubusercontent.com/7cb9196c3a1634b564d58acd0d9d8cf8990c680426c7251748f4b30a49c057f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7374727567676c652d666f722d7068702f7366702d7073616c6d2d74797065642d6c6f63616c2d7661726961626c652d706c7567696e2e737667)](https://packagist.org/packages/struggle-for-php/sfp-psalm-typed-local-variable-plugin)[![Mutation testing badge](https://camo.githubusercontent.com/bf74b8a36c656c5d7c29474936a93f972735ad71b3e179db9fecafc9ada9b2a4/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532467374727567676c652d666f722d7068702532467366702d7073616c6d2d74797065642d6c6f63616c2d7661726961626c652d706c7567696e253246302e322e78)](https://dashboard.stryker-mutator.io/reports/github.com/struggle-for-php/sfp-psalm-typed-local-variable-plugin/0.2.x)[![Psalm coverage](https://camo.githubusercontent.com/fb8fd0dd04f4df790751166b5e28db2d71d68209eb5ddfdefeb970f12e9663ec/68747470733a2f2f73686570686572642e6465762f6769746875622f7374727567676c652d666f722d7068702f7366702d7073616c6d2d74797065642d6c6f63616c2d7661726961626c652d706c7567696e2f636f7665726167652e7376673f)](https://shepherd.dev/github/struggle-for-php/sfp-psalm-typed-local-variable-plugin)

Installation
------------

[](#installation)

```
$ composer require --dev struggle-for-php/sfp-psalm-typed-local-variable-plugin
$ vendor/bin/psalm-plugin enable struggle-for-php/sfp-psalm-typed-local-variable-plugin

```

latest version supports psalm `^4`.

Demo
----

[](#demo)

```
