Skip to content

Commit df2223d

Browse files
committed
Fix psalm
1 parent ed61209 commit df2223d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

psalm_autoload.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@
2424
}
2525

2626
$dirs = [
27-
'tests/_support/Controllers',
2827
'tests/_support/_controller',
28+
'tests/_support/Controllers',
29+
'tests/_support/Entity',
30+
'tests/_support/Entity/Cast',
31+
'tests/_support/Models',
32+
'tests/_support/Validation',
33+
'tests/_support/View',
2934
'tests/system/Config/fixtures',
3035
];
3136

system/DataConverter/DataConverter.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
/**
2121
* PHP data <==> DataSource data converter
2222
*
23+
* @template TEntity of object
24+
*
2325
* @see \CodeIgniter\DataConverter\DataConverterTest
2426
*/
2527
final class DataConverter
@@ -30,8 +32,6 @@ final class DataConverter
3032
private readonly DataCaster $dataCaster;
3133

3234
/**
33-
* @template TEntity of object
34-
*
3535
* @param array<string, class-string> $castHandlers Custom convert handlers
3636
*
3737
* @internal
@@ -105,8 +105,6 @@ public function toDataSource(array $phpData): array
105105
/**
106106
* Takes database data array and creates a specified type object.
107107
*
108-
* @template TEntity of object
109-
*
110108
* @param class-string<TEntity> $classname
111109
* @param array<string, mixed> $row Raw data from database
112110
*

0 commit comments

Comments
 (0)