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

@@ -15,7 +15,7 @@ class LibraryItemObserver
* @param \App\Models\LibraryItem $libraryItem
* @return void
*/
public function created(LibraryItem $libraryItem)
public function created(LibraryItem $libraryItem): void
{
// todo: we can change this later
try {
@@ -58,7 +58,7 @@ class LibraryItemObserver
* @param \App\Models\LibraryItem $libraryItem
* @return void
*/
public function updated(LibraryItem $libraryItem)
public function updated(LibraryItem $libraryItem): void
{
//
}
@@ -69,7 +69,7 @@ class LibraryItemObserver
* @param \App\Models\LibraryItem $libraryItem
* @return void
*/
public function deleted(LibraryItem $libraryItem)
public function deleted(LibraryItem $libraryItem): void
{
//
}
@@ -80,7 +80,7 @@ class LibraryItemObserver
* @param \App\Models\LibraryItem $libraryItem
* @return void
*/
public function restored(LibraryItem $libraryItem)
public function restored(LibraryItem $libraryItem): void
{
//
}
@@ -91,7 +91,7 @@ class LibraryItemObserver
* @param \App\Models\LibraryItem $libraryItem
* @return void
*/
public function forceDeleted(LibraryItem $libraryItem)
public function forceDeleted(LibraryItem $libraryItem): void
{
//
}