Go to file
Matthew Brown 081d62d2ae
Merge pull request #42 from mr-feek/fix-app-helper-typehint
fix: return class instance of type
2020-04-14 00:37:12 -04:00
.github/workflows chore: run tests on pr 2020-04-12 14:52:37 -07:00
src fix: return class instance of type 2020-04-13 21:30:47 -07:00
tests Merge pull request #36 from mr-feek/run-tests 2020-04-14 00:04:11 -04:00
.gitignore Fix #1 by improving plugin initialisation 2019-02-20 01:33:01 -05:00
codeception.yml introduce testing 2020-04-08 00:47:02 -07:00
composer.json feature: add types to container 2020-04-12 19:14:44 -07:00
LICENSE Add license 2020-02-03 16:57:15 -05:00
phpcs.xml chore: introduce phpcs 2020-04-12 11:55:32 -07:00
psalm-baseline.xml Add baseline to capture existing errors 2020-01-08 00:11:05 -05:00
psalm.xml feature: generic collections 2020-04-11 15:30:37 -07:00
README.md Update README.md 2020-03-10 08:48:51 -04:00

Psalm plugin for Laravel

Type coverage

Installation

First install Psalm in your project, making sure to run --init, then run the following commands:

composer require --dev psalm/plugin-laravel
vendor/bin/psalm-plugin enable psalm/plugin-laravel

How it works

Under the hood it just runs https://github.com/barryvdh/laravel-ide-helper and feeds the resultant stubs into Psalm, which can read PHPStorm meta stubs.

It also parses any database migrations it can find to try to understand property types in your database models.