Skip to content

Commit a466f43

Browse files
janpechamibk
authored andcommitted
Fix @template annotations
1 parent 42865a3 commit a466f43

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

LeanMapperQuery/Entity.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class Entity extends LeanMapper\Entity
3131
protected static $magicMethodsPrefixes = [];
3232

3333
/**
34-
* @template T of Entity
34+
* @template T of \LeanMapper\Entity
3535
* @param string $field
3636
* @param IQuery<T> $query
3737
* @return T[]
@@ -41,6 +41,12 @@ protected function queryProperty($field, IQuery $query)
4141
return static::queryEntityProperty($this, $field, $query);
4242
}
4343

44+
/**
45+
* @template T of \LeanMapper\Entity
46+
* @param string $field
47+
* @param IQuery<T> $query
48+
* @return T[]
49+
*/
4450
public static function queryEntityProperty(LeanMapper\Entity $entity, $field, IQuery $query)
4551
{
4652
if ($entity->isDetached()) {

LeanMapperQuery/IQuery.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* @author Michal Bohuslávek
1616
* @deprecated use Query instead; the IQuery interface might get removed in the future
1717
*
18-
* @template T of Entity
18+
* @template T of \LeanMapper\Entity
1919
*/
2020
interface IQuery
2121
{

LeanMapperQuery/Query.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* @author Michal Bohuslávek
2626
*
27-
* @template T of Entity
27+
* @template T of \LeanMapper\Entity
2828
*
2929
* @method $this where($cond, ...$args)
3030
* @method $this orderBy($field)

0 commit comments

Comments
 (0)