We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
mixed
1 parent 0eea94e commit fcfa8a3Copy full SHA for fcfa8a3
src/Entities/Factory.php
@@ -6,12 +6,12 @@ abstract class Factory
6
{
7
abstract public static function make(array $data, string $bot_username): Entity;
8
9
- public static function resolveEntityClass(string $class, mixed $property, string $bot_username = ''): Entity
+ public static function resolveEntityClass(string $class, $property, string $bot_username = ''): Entity
10
11
if (is_a($property, $class)) {
12
return $property;
13
}
14
-
+
15
if (is_subclass_of($class, Factory::class)) {
16
return $class::make($property, $bot_username);
17
0 commit comments