File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,8 +134,8 @@ public function __construct(...$args)
134134 $ typeHintGot = \is_object ($ value ) ? \get_class ($ value ) : \gettype ($ value );
135135 $ reflectionMethod = new ReflectionMethod ($ this , $ method );
136136 $ parameter = $ reflectionMethod ->getParameters ()[0 ] ?? null ;
137- $ typeHintExpected = ($ parameter instanceof ReflectionParameter ? ($ parameter ->getType () === 'object ' ? $ parameter ->getClass () : $ parameter ->getType (
138- )) : 'Unknown type ' );
137+ $ typeHintExpected = ($ parameter instanceof ReflectionParameter ? ($ parameter ->getType ()-> getName () === 'object ' ? $ parameter ->getClass () : $ parameter ->getType (
138+ )-> getName () ) : 'Unknown type ' );
139139
140140 throw new PhpfastcacheInvalidConfigurationException (
141141 \sprintf (
You can’t perform that action at this time.
0 commit comments