No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test/Task
.gitignore
.travis.yml
Readme.md
composer.json
grumphp.yml.dist
phpunit.xml.dist

Readme.md

GrumPHPPsalm

This package is a Psalm extension for GrumPHP. All newly committed files will be analysed by Psalm.

Current build status

Build Status

Installation

Add this package using composer, firstly add the packages repository

Then, require the this repository

	composer require --dev weemen/grumphp-psalm

Usage

First of all, dont forget to create your psaml.xml file

For example:

<?xml version="1.0"?>
<psalm
  stopOnFirstError="false"
  useDocblockTypes="true"
>
    <projectFiles>
        <directory name="src" />
    </projectFiles>
    <issueHandlers>
        <MissingReturnType errorLevel="error" />
        <MissingClosureReturnType errorLevel="error" />
        <MissingPropertyType errorLevel="error" />
    </issueHandlers>
</psalm>

Edit GrumPHP and add the psalm task:

parameters:
  git_dir: .
  bin_dir: bin
  tasks:
    psalm:
       config: psalm.xml
  extensions:
    - Weemen\GrumPHPPsalm\Extension\Loader