fix hinting and tests for L10 and PHP8

This commit is contained in:
2023-05-25 08:18:51 +10:00
parent f839003f5e
commit e8827cbd50
5 changed files with 19 additions and 8 deletions

View File

@@ -142,9 +142,9 @@ class ArticleConductor extends Conductor
* Transform the Hero field.
*
* @param mixed $value The current value.
* @return array The new value.
* @return array|null The new value.
*/
public function transformHero(mixed $value): array
public function transformHero(mixed $value): array|null
{
return MediaConductor::includeModel(request(), 'hero', Media::find($value));
}