Skip to content

Commit

Permalink
Merge pull request #6 from chimeraphp/upgrade-libs
Browse files Browse the repository at this point in the history
Upgrade libraries
  • Loading branch information
lcobucci authored Dec 23, 2018
2 parents 23b30b9 + 2a0ca65 commit 0f67be3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ language: php

php:
- 7.2
- 7.3
- nightly

cache:
Expand Down Expand Up @@ -51,4 +52,4 @@ jobs:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for mutation tests"; exit 1; fi
script:
- ./vendor/bin/infection --threads=4 --min-msi=100 --min-covered-msi=100
- ./vendor/bin/infection --threads=$(nproc) --min-msi=100 --min-covered-msi=100
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
"ramsey/uuid": "^3.8"
},
"require-dev": {
"infection/infection": "^0.10",
"lcobucci/coding-standard": "^1.0",
"infection/infection": "^0.11",
"lcobucci/coding-standard": "^2.0",
"phpstan/phpstan": "^0.10",
"phpstan/phpstan-deprecation-rules": "^0.10",
"phpstan/phpstan-phpunit": "^0.10",
"phpstan/phpstan-strict-rules": "^0.10",
"phpunit/phpunit": "^7.3",
"squizlabs/php_codesniffer": "^3.3"
"phpunit/phpunit": "^7.5",
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
"psr-4": {
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ parameters:
paths:
- src
- tests

ignoreErrors:
- '#Parameter \#2 $haystack of static method PHPUnit\\Framework\\Assert::.*\(\) expects .*, array|object|null given#'
4 changes: 3 additions & 1 deletion tests/ServiceBus/ReadModelConverter/AmazingDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

namespace Chimera\Tests\ServiceBus\ReadModelConverter;

final class AmazingDto implements \JsonSerializable
use JsonSerializable;

final class AmazingDto implements JsonSerializable
{
/**
* @var int
Expand Down
2 changes: 1 addition & 1 deletion tests/ServiceBus/ReadModelConverter/CallbackTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function convertShouldUseTheQueryCallbackToCreateMultipleReadModels(): vo

$result = $converter->convert(new AmazingFetchStuff(1), [$domainObj]);

self::assertInternalType('array', $result);
self::assertIsArray($result);
self::assertContainsOnlyInstancesOf(AmazingDto::class, $result);
self::assertCount(1, $result);
}
Expand Down

0 comments on commit 0f67be3

Please sign in to comment.