File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ public function __construct(
24
24
* @template T of \Spameri\Elastic\Entity\AbstractElasticEntity
25
25
* @param class-string<T> $class
26
26
* @param string $id
27
- * @return T|null
27
+ * @return T
28
28
*/
29
29
public function find (
30
30
string $ id ,
31
31
string $ class ,
32
- )
32
+ ): \ Spameri \ Elastic \ Entity \ AbstractElasticEntity
33
33
{
34
34
$ entity = $ this ->identityMap ->get (
35
35
class: $ class ,
@@ -54,12 +54,12 @@ class: $class,
54
54
/**
55
55
* @template T of \Spameri\Elastic\Entity\AbstractElasticEntity
56
56
* @param class-string<T> $class
57
- * @return T|null
57
+ * @return T
58
58
*/
59
59
public function findOneBy (
60
60
\Spameri \ElasticQuery \ElasticQuery $ elasticQuery ,
61
61
string $ class ,
62
- )
62
+ ): \ Spameri \ Elastic \ Entity \ AbstractElasticEntity
63
63
{
64
64
$ elasticQuery ->options ()->changeSize (1 );
65
65
You can’t perform that action at this time.
0 commit comments