Skip to content

Commit e7c473f

Browse files
committed
Fix static analysis
1 parent d3c9193 commit e7c473f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ parameters:
1111
- src/Views/*
1212
ignoreErrors:
1313
- '#Cannot access property [\$a-z_]+ on (array|object)#'
14+
- '#Unsafe usage of new static\(\)#'
1415
universalObjectCratesClasses:
1516
- CodeIgniter\Entity
1617
- Faker\Generator

tests/templates/TemplateModelTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
class TemplateModelTest extends DatabaseTestCase
99
{
10+
/**
11+
* @var Template
12+
*/
13+
protected $template;
14+
1015
public function setUp(): void
1116
{
1217
parent::setUp();

0 commit comments

Comments
 (0)