Skip to content

Commit

Permalink
Merge pull request #29 from weierophinney/feature/17-psalm-integration
Browse files Browse the repository at this point in the history
Provide Psalm integration
  • Loading branch information
weierophinney committed Dec 22, 2020
2 parents 0489584 + bb42e73 commit bf947cf
Show file tree
Hide file tree
Showing 30 changed files with 1,712 additions and 187 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -48,6 +48,7 @@ install:
script:
- if [[ $TEST_COVERAGE == 'true' ]]; then XDEBUG_MODE=coverage composer test-coverage ; else composer test ; fi
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
- if [[ $TEST_COVERAGE == 'true' ]]; then composer static-analysis ; fi

after_script:
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,12 @@ Versions prior to 0.4.0 were released as the package "weierophinney/hal".

### Changed

- [#29](https://github.com/mezzio/mezzio-hal/pull/29) makes the following signature changes to the `LinkCollection` class:
- `getLinks()` gets an `array` return typehint
- `getLinksByRel()` gets an `array` return typehint
- `withLink()` gets a `self` return typehint
- `withoutLink()` gets a `self` return typehint

- [#28](https://github.com/mezzio/mezzio-hal/pull/28) adds the `object` typehint to the `$instance` argument of the `StrategyInterface::fromObject()` method.
This also affects each of the shipped implementations:
- `RouteBasedCollectionStrategy`
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -44,7 +44,9 @@
"laminas/laminas-paginator": "^2.9",
"mezzio/mezzio-helpers": "^5.4",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.15.0",
"vimeo/psalm": "^4.3"
},
"provide": {
"psr/link-implementation": "1.0"
Expand Down Expand Up @@ -72,6 +74,7 @@
],
"cs-check": "phpcs",
"cs-fix": "phpcbf",
"static-analysis": "psalm --shepherd --stats",
"test": "phpunit --colors=always",
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
},
Expand Down

0 comments on commit bf947cf

Please sign in to comment.