From 935fdd0fd45d9dee23295d53b83cf33eedf6b00c Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Sun, 12 May 2019 18:38:05 +0200 Subject: [PATCH] Test with bleeding edge --- composer.json | 2 +- phpstan.neon | 1 + tests/Mockery/Foo.php | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index df3a3b4..d996163 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "require": { "php": "~7.1", - "phpstan/phpstan": "^0.11", + "phpstan/phpstan": "^0.11.4", "phpstan/phpdoc-parser": "^0.3", "nikic/php-parser": "^4.0" }, diff --git a/phpstan.neon b/phpstan.neon index e4ddbe0..d53799b 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -3,3 +3,4 @@ includes: - vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/rules.neon - vendor/phpstan/phpstan-strict-rules/rules.neon + - vendor/phpstan/phpstan/conf/bleedingEdge.neon diff --git a/tests/Mockery/Foo.php b/tests/Mockery/Foo.php index d286023..e11455c 100644 --- a/tests/Mockery/Foo.php +++ b/tests/Mockery/Foo.php @@ -7,6 +7,11 @@ class Foo public function doFoo(): ?string { + if (rand(0, 1) === 0) { + return null; + } + + return 'foo'; } }