File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace App \Controllers ;
4
4
5
+ use App \Entities \Dungeon ;
5
6
use App \Models \DungeonModel ;
6
7
use CodeIgniter \HTTP \ResponseInterface ;
7
8
@@ -33,6 +34,7 @@ public function __construct()
33
34
*/
34
35
public function show (int $ id )
35
36
{
37
+ /** @var Dungeon|null $dungeon */
36
38
$ dungeon = $ this ->dungeons ->find ($ id );
37
39
38
40
if ($ dungeon === null ) {
Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ public function testCreateAddsToDatabase()
64
64
public function testHelperUsesFaker ()
65
65
{
66
66
// test_helper comes with the fake() method that does the same as above without all the set up
67
+ /** @var Monster $monster */
67
68
$ monster = fake (MonsterFaker::class);
68
69
$ this ->assertIsInt ($ monster ->id );
69
70
You can’t perform that action at this time.
0 commit comments