138138 */
139139class Doctrine2 extends CodeceptionModule implements DependsOnModule, DataMapper
140140{
141-
142141 private ?DoctrineProvider $ dependentModule = null ;
143142
143+ /**
144+ * @var array<string, mixed>
145+ */
144146 protected array $ config = [
145147 'cleanup ' => true ,
146148 'connection_callback ' => false ,
@@ -908,7 +910,7 @@ public function grabFromRepository(string $entity, string $field, array $params
908910 * $users = $I->grabEntitiesFromRepository(User::class, ['name' => 'davert']);
909911 * ```
910912 *
911- * @template T
913+ * @template T of object
912914 * @param class-string<T> $entity
913915 * @param array $params . For `IS NULL`, use `['field' => null]`
914916 * @return list<T>
@@ -938,7 +940,7 @@ public function grabEntitiesFromRepository(string $entity, array $params = []):
938940 * $user = $I->grabEntityFromRepository(User::class, ['id' => '1234']);
939941 * ```
940942 *
941- * @template T
943+ * @template T of object
942944 * @param class-string<T> $entity
943945 * @param array $params . For `IS NULL`, use `['field' => null]`
944946 * @return T
@@ -1006,7 +1008,7 @@ private function debugEntityCreation(object $instance, $pks): void
10061008 $ message = get_class ($ instance ) . ' entity created with ' ;
10071009
10081010 if (!is_array ($ pks )) {
1009- $ pks = [$ pks ];
1011+ $ pks = [$ pks ];
10101012 $ message .= 'primary key ' ;
10111013 } else {
10121014 $ message .= 'composite primary key of ' ;
@@ -1023,10 +1025,7 @@ private function debugEntityCreation(object $instance, $pks): void
10231025 $ this ->debug (trim ($ message , ' , ' ));
10241026 }
10251027
1026- /**
1027- * @param mixed $pk
1028- */
1029- private function isDoctrineEntity ($ pk ): bool
1028+ private function isDoctrineEntity (mixed $ pk ): bool
10301029 {
10311030 $ isEntity = is_object ($ pk );
10321031
0 commit comments