Skip to content

Commit fcfa8a3

Browse files
committed
Remove PHP8+ mixed type hint
1 parent 0eea94e commit fcfa8a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Entities/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ abstract class Factory
66
{
77
abstract public static function make(array $data, string $bot_username): Entity;
88

9-
public static function resolveEntityClass(string $class, mixed $property, string $bot_username = ''): Entity
9+
public static function resolveEntityClass(string $class, $property, string $bot_username = ''): Entity
1010
{
1111
if (is_a($property, $class)) {
1212
return $property;
1313
}
14-
14+
1515
if (is_subclass_of($class, Factory::class)) {
1616
return $class::make($property, $bot_username);
1717
}

0 commit comments

Comments
 (0)