ReflectionFunction::construct(): Argument 1 ($function) must be of type Closure|string, array given {"userId":null,"email":null,"exception":"[object] (TypeError(code: 0): ReflectionFunction::construct(): Argument 1 ($function) must be of type Closure|string, array given at C:...\vendor\illuminate\routing\RouteSignatureParameters.php:27)
Steps to reproduce
Define a post-type archive / WordPress route using this syntax:
Description
ReflectionFunction::construct(): Argument 1 ($function) must be of type Closure|string, array given {"userId":null,"email":null,"exception":"[object] (TypeError(code: 0): ReflectionFunction::construct(): Argument 1 ($function) must be of type Closure|string, array given at C:...\vendor\illuminate\routing\RouteSignatureParameters.php:27)
Steps to reproduce
Define a post-type archive / WordPress route using this syntax:
Expected behavior
Being able to reach the defined endpoint without triggering any exceptions.