Updated PHPStan to v0.11.15

parent 54b52aed
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