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.
1 parent c690255 commit 25f857eCopy full SHA for 25f857e
src/Latte/Runtime/FilterExecutor.php
@@ -178,7 +178,8 @@ private function prepareFilter(string $name): array
178
? new \ReflectionMethod($callback[0], $callback[1])
179
: new \ReflectionFunction($callback);
180
$this->_static[$name][1] = ($tmp = $ref->getParameters())
181
- && (string) $tmp[0]->getType() === FilterInfo::class;
+ && $tmp[0]->getType() !== null
182
+ && $tmp[0]->getType()->getName() === FilterInfo::class;
183
}
184
return $this->_static[$name];
185
0 commit comments