Skip to content

add vimeo/psalm, update to phpunit 7.x, change require-dev to require…#22

Open
DavidGoodwin wants to merge 5 commits into
wdalmut:masterfrom
DavidGoodwin:master
Open

add vimeo/psalm, update to phpunit 7.x, change require-dev to require…#22
DavidGoodwin wants to merge 5 commits into
wdalmut:masterfrom
DavidGoodwin:master

Conversation

@DavidGoodwin
Copy link
Copy Markdown
Contributor

Upgrade to newer PHPUnit version
Add vimeo/psalm for possible static analysis checks

@wdalmut
Copy link
Copy Markdown
Owner

wdalmut commented Jan 9, 2021

can you upgrade travis configuration to php7.4 so the test suit will run?

@DavidGoodwin
Copy link
Copy Markdown
Contributor Author

can you upgrade travis configuration to php7.4 so the test suit will run?

possibly done .... (I'm commenting before I've checked if travis is happy ... it may not like php7.2 or 5.6 now, I'm not sure)

Copy link
Copy Markdown
Owner

@wdalmut wdalmut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i prefer to drop the vimeo/psalm support, i think that less dependency is better

Comment thread .travis.yml Outdated
php:
- 7.4
- 7.2
- 5.6
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can i also ask to drop php5.6 from travis-ci?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread composer.json Outdated
"mikey179/vfsstream": "1.4.*"
"php": ">=7.2",
"phpunit/phpunit": "~7",
"mikey179/vfsstream": "1.4.*",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you upgrade to the latest 1.6.*?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done (changed to ^1.4)

Comment thread composer.json
"php": ">=7.2",
"phpunit/phpunit": "~7",
"mikey179/vfsstream": "1.4.*",
"vimeo/psalm" : "*"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you drop this dependency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

psalm is a dev only dependency - it won't affect users of the package.

it will help make sure you've not added errors into the codebase (E.g. wrong parameters, missing parameter, incorrect doc types etc).

Comment thread composer.json
"vimeo/psalm" : "*"
},
"scripts": {
"psalm" : "@php vendor/bin/psalm",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you drop this script?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding it helps the code quality. I don't see why you'd want to drop it.

Normal users of the package will not install psalm as a dependency.

Comment thread psalm.xml
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you drop psalm support? i think that is better to have less..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants