diff --git a/build.xml b/build.xml
index f9211fa..2ac1ca4 100644
--- a/build.xml
+++ b/build.xml
@@ -92,7 +92,7 @@
>
-
+
diff --git a/composer.json b/composer.json
index 9c4237a..340b5a5 100644
--- a/composer.json
+++ b/composer.json
@@ -4,17 +4,23 @@
"license": ["MIT"],
"minimum-stability": "dev",
"prefer-stable": true,
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.7-dev"
+ }
+ },
"require": {
"php": "~7.0",
- "phpstan/phpstan": "^0.6",
+ "phpstan/phpstan": "^0.7",
"dibi/dibi": "~3.0"
},
"require-dev": {
- "consistence/coding-standard": "~0.12.0",
+ "consistence/coding-standard": "~0.13.0",
+ "jakub-onderka/php-parallel-lint": "^0.9.2",
"phing/phing": "^2.13.0",
"phpunit/phpunit": "^5.3",
"satooshi/php-coveralls": "^1.0",
- "slevomat/coding-standard": "dev-php7#961090ac32"
+ "slevomat/coding-standard": "^2.0"
},
"autoload": {
"psr-4": {
diff --git a/phpstan.neon b/phpstan.neon
index fb0da3f..fa9260a 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -1,3 +1,3 @@
parameters:
ignoreErrors:
- - '#Call to an undefined method PHPUnit_Framework_MockObject_MockObject::[a-zA-Z0-9_]+\(\)#'
+ - '#PHPUnit_Framework_MockObject_MockObject given#'
diff --git a/ruleset.xml b/ruleset.xml
index a855976..9974b61 100644
--- a/ruleset.xml
+++ b/ruleset.xml
@@ -7,11 +7,16 @@
-
+
+
+
+
+ tests/
+
diff --git a/src/Reflection/Dibi/DibiFluentMethodReflection.php b/src/Reflection/Dibi/DibiFluentMethodReflection.php
index a489767..4186296 100644
--- a/src/Reflection/Dibi/DibiFluentMethodReflection.php
+++ b/src/Reflection/Dibi/DibiFluentMethodReflection.php
@@ -67,7 +67,7 @@ public function isPublic(): bool
public function getReturnType(): Type
{
- return new ObjectType(\Dibi\Fluent::class, false);
+ return new ObjectType(\Dibi\Fluent::class);
}
}
diff --git a/tests/Reflection/Dibi/DibiFluentClassReflectionExtensionTest.php b/tests/Reflection/Dibi/DibiFluentClassReflectionExtensionTest.php
index 582052b..d181dd9 100644
--- a/tests/Reflection/Dibi/DibiFluentClassReflectionExtensionTest.php
+++ b/tests/Reflection/Dibi/DibiFluentClassReflectionExtensionTest.php
@@ -3,7 +3,6 @@
namespace PHPStan\Reflection\Dibi;
use PHPStan\Reflection\ClassReflection;
-use PHPStan\Type\ObjectType;
class DibiFluentClassReflectionExtensionTest extends \PHPUnit_Framework_TestCase
{
@@ -54,9 +53,7 @@ public function testGetMethod()
$this->assertTrue($methodReflection->isVariadic());
$this->assertFalse($methodReflection->isPrivate());
$this->assertTrue($methodReflection->isPublic());
- $this->assertInstanceOf(ObjectType::class, $methodReflection->getReturnType());
- $this->assertSame(\Dibi\Fluent::class, $methodReflection->getReturnType()->getClass());
- $this->assertFalse($methodReflection->getReturnType()->isNullable());
+ $this->assertSame(\Dibi\Fluent::class, $methodReflection->getReturnType()->describe());
}
}