Unverified Commit 461d4247 authored by Sergei Morozov's avatar Sergei Morozov Committed by GitHub

Merge pull request #3663 from morozov/phpstan-0.11.15

Updated PHPStan to v0.11.15
parents b6b44f87 c23e780c
This diff is collapsed.
......@@ -43,7 +43,7 @@ class ArrayType extends Type
$value = is_resource($value) ? stream_get_contents($value) : $value;
set_error_handler(function (int $code, string $message) : void {
set_error_handler(function (int $code, string $message) : bool {
throw ConversionException::conversionFailedUnserialization($this->getName(), $message);
});
......
......@@ -42,7 +42,7 @@ class ObjectType extends Type
$value = is_resource($value) ? stream_get_contents($value) : $value;
set_error_handler(function (int $code, string $message) : void {
set_error_handler(function (int $code, string $message) : bool {
throw ConversionException::conversionFailedUnserialization($this->getName(), $message);
});
......
......@@ -72,4 +72,10 @@
<rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators.DisallowedNotEqualOperator">
<exclude-pattern>lib/Doctrine/DBAL/Schema/Comparator.php</exclude-pattern>
</rule>
<!-- see https://github.com/slevomat/coding-standard/issues/737 -->
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint">
<exclude-pattern>lib/Doctrine/DBAL/Types/ArrayType.php</exclude-pattern>
<exclude-pattern>lib/Doctrine/DBAL/Types/ObjectType.php</exclude-pattern>
</rule>
</ruleset>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment