blob: 918de515b076821c69be30d81e4373b937bf07ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
diff -up ./src/Framework/MockObject/Generator.php.old ./src/Framework/MockObject/Generator.php
--- ./src/Framework/MockObject/Generator.php.old 2021-03-18 14:27:57.237056358 +0100
+++ ./src/Framework/MockObject/Generator.php 2021-03-18 14:28:03.916026672 +0100
@@ -1207,13 +1207,13 @@ class PHPUnit_Framework_MockObject_Gener
}
$typeDeclaration = $typename . ' ';
- } elseif ($parameter->isArray()) {
+ } elseif (@$parameter->isArray()) {
$typeDeclaration = 'array ';
- } elseif ($parameter->isCallable()) {
+ } elseif (@$parameter->isCallable()) {
$typeDeclaration = 'callable ';
} else {
try {
- $class = $parameter->getClass();
+ $class = @$parameter->getClass();
} catch (ReflectionException $e) {
throw new PHPUnit_Framework_MockObject_RuntimeException(
sprintf(
|