'page_revisions' => ['html', 'text', 'markdown'],
'images' => ['url'],
'settings' => ['value'],
- 'comments' => ['html', 'text'],
+ 'comments' => ['html'],
];
foreach ($columnsToUpdateByTable as $table => $columns) {
use BookStack\Entities\Models\Page;
use BookStack\Entities\Repos\DeletionRepo;
use BookStack\Http\ApiController;
+use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\HasMany;
class RecycleBinApiController extends ApiController
/**
* Load some related details for the deletion listing.
*/
- protected function listFormatter(Deletion $deletion)
+ protected function listFormatter(Deletion $deletion): void
{
$deletable = $deletion->deletable;
}
/**
- * @param HasMany<Chapter|Page, Book|Chapter> $query
+ * @param Builder<Chapter|Page> $query
*/
- protected static function withTrashedQuery(HasMany $query): void
+ protected static function withTrashedQuery(Builder $query): void
{
$query->withTrashed();
}