We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f4ec9a + af5b3a4 commit edb91d8Copy full SHA for edb91d8
1 file changed
lib/Phpfastcache/Config/ConfigurationOption.php
@@ -134,8 +134,8 @@ public function __construct(...$args)
134
$typeHintGot = \is_object($value) ? \get_class($value) : \gettype($value);
135
$reflectionMethod = new ReflectionMethod($this, $method);
136
$parameter = $reflectionMethod->getParameters()[0] ?? null;
137
- $typeHintExpected = ($parameter instanceof ReflectionParameter ? ($parameter->getType() === 'object' ? $parameter->getClass() : $parameter->getType(
138
- )) : 'Unknown type');
+ $typeHintExpected = ($parameter instanceof ReflectionParameter ? ($parameter->getType()->getName() === 'object' ? $parameter->getClass() : $parameter->getType(
+ )->getName()) : 'Unknown type');
139
140
throw new PhpfastcacheInvalidConfigurationException(
141
\sprintf(
0 commit comments