Add PHP type hints for Laravel 10

This commit is contained in:
Shift
2023-02-19 16:19:46 +00:00
committed by HolgerHatGarKeineNode
parent ad55c69b51
commit 98a430c91c
192 changed files with 563 additions and 550 deletions

View File

@@ -39,7 +39,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
*
* @return void
*/
public function boot()
public function boot(): void
{
parent::boot();
@@ -172,7 +172,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
*
* @return array
*/
public function tools()
public function tools(): array
{
return [
Novaspatiepermissions::make(),
@@ -184,7 +184,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
*
* @return void
*/
protected function routes()
protected function routes(): void
{
Nova::routes()
->withAuthenticationRoutes()
@@ -197,7 +197,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
*
* @return void
*/
public function register()
public function register(): void
{
//
}
@@ -208,7 +208,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
*
* @return void
*/
protected function gate()
protected function gate(): void
{
Gate::define('viewNova', function ($user) {
return $user->is_lecturer;
@@ -220,7 +220,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
*
* @return array
*/
protected function dashboards()
protected function dashboards(): array
{
return [
new \App\Nova\Dashboards\Main,