1 min readAug 15, 2020
The methods are missing the explicit return type. E.g.,
public function boot(): void
{
}
Otherwise it's assumed to be "mixed" by PHP.
The "mixed" type is now part of PHP 8 as an actual type so that the return type can always be made explicit. The "void" type has been valid since PHP 7.