laminas / laminas-mvc-i18n

Integration between laminas-mvc and laminas-i18n
https://docs.laminas.dev/laminas-mvc-i18n/
BSD 3-Clause "New" or "Revised" License
14 stars 12 forks source link

Psalm integration #5

Closed boesing closed 3 years ago

boesing commented 4 years ago

Feature Request

Q A
QA yes

Summary

As decided during the Technical-Steering-Committee Meeting on August 3rd, 2020, Laminas wants to implement vimeo/psalm in all packages.

Implementing psalm is quite easy.

Required

Optional
gennadiylitvinyuk commented 3 years ago

Small correction:

The file should be named psalm.xml.dist, not .psalm.xml.dist

You need to run

composer require --dev vimeo/psalm
composer require --dev psalm/plugin-phpunit
vendor/bin/psalm-plugin enable psalm/plugin-phpunit

@boesing

  1. Do I need to commit both files? (the baseline too?)
  2. Should I modify .gitattributes too?
boesing commented 3 years ago

@gennadiylitvinyuk Yes, if a baseline is needed, it should be part of the source (otherwise, the psalm.xml.dist would be invalid.

Sadly, I've created plenty of issues with the same template and thus all issues contain falsy information. So you are absolutely right with these changes.

TBH: I havent thought about the .gitattributes. I wont require a change in there but you are welcome if you want to do so.