1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Framework: Performed Laravel 11 upgrade guide steps

Performed a little code cleanups when observed along the way.
Tested not yet ran.
This commit is contained in:
Dan Brown
2025-01-11 11:14:49 +00:00
parent 5116d83d38
commit cf9ccfcd5b
12 changed files with 669 additions and 894 deletions

View File

@@ -8,7 +8,7 @@ return new class extends Migration
/**
* Mapping of old polymorphic types to new simpler values.
*/
protected $changeMap = [
protected array $changeMap = [
'BookStack\\Bookshelf' => 'bookshelf',
'BookStack\\Book' => 'book',
'BookStack\\Chapter' => 'chapter',
@@ -18,7 +18,7 @@ return new class extends Migration
/**
* Mapping of tables and columns that contain polymorphic types.
*/
protected $columnsByTable = [
protected array $columnsByTable = [
'activities' => 'entity_type',
'comments' => 'entity_type',
'deletions' => 'deletable_type',