Fix: php 8.1 strtolower not allow null value (#1559)
This commit is contained in:
@@ -1032,7 +1032,7 @@ class Archive extends Contents
|
||||
*/
|
||||
public function related(int $limit = 5, ?string $type = null): Contents
|
||||
{
|
||||
$type = strtolower($type);
|
||||
$type = strtolower($type ?? '');
|
||||
|
||||
switch ($type) {
|
||||
case 'author':
|
||||
|
||||
Reference in New Issue
Block a user