Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
janatjak committed Sep 17, 2017
1 parent 3c5ce2f commit 157a655
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ addons:

cache:
directories:
- vendor
- $HOME/.composer/cache

php:
- 7.1

install:
- composer install --no-interaction --prefer-source
- composer install --no-interaction --prefer-dist

before_script:
# Init Postgre database
Expand All @@ -33,7 +32,7 @@ before_script:
- mysql -e 'SET PASSWORD FOR "root"@"localhost" = PASSWORD("");'

script:
- php vendor/bin/phpstan analyse ./src ./tests --level 7
- php vendor/bin/phpstan analyse ./src ./tests --level 7 -c phpstan.neon
- php vendor/bin/phpcs --standard=PSR2 ./src ./tests
- php vendor/bin/tester tests -p phpdbg --coverage ./coverage.xml --coverage-src ./src

Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
parameters:
ignoreErrors:
- '#Cannot call method fetchPairs\(\) on Dibi\\Result|int#'
- '#Access to an undefined property Psr\\Cache\\CacheItemInterface::\$isHit#'
2 changes: 1 addition & 1 deletion tests/Mock/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class Cache implements CacheItemPoolInterface
{
/**
* @var CacheItemInterface[]|Cache[]
* @var CacheItemInterface[]|CacheItem[]
*/
public $data = [];

Expand Down

0 comments on commit 157a655

Please sign in to comment.