mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 11:16:43 +02:00
refactor: update code base to php 8 and set phpstan lvl to 6
This commit is contained in:
parent
4a33c50fb6
commit
6b74a9e98a
124 changed files with 1810 additions and 2157 deletions
|
|
@ -66,10 +66,7 @@ class SoundbiteModel extends Model
|
|||
*/
|
||||
protected $beforeDelete = ['clearCache'];
|
||||
|
||||
/**
|
||||
* @return bool|BaseResult
|
||||
*/
|
||||
public function deleteSoundbite($podcastId, $episodeId, $soundbiteId)
|
||||
public function deleteSoundbite(int $podcastId, int $episodeId, int $soundbiteId): BaseResult|bool
|
||||
{
|
||||
return $this->delete([
|
||||
'podcast_id' => $podcastId,
|
||||
|
|
@ -99,6 +96,7 @@ class SoundbiteModel extends Model
|
|||
}
|
||||
|
||||
/**
|
||||
* @param array<string, array<string|int, mixed>> $data
|
||||
* @return array<string, array<string|int, mixed>>
|
||||
*/
|
||||
public function clearCache(array $data): array
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue