Skip to content

Commit f815fd4

Browse files
committed
refactor: fix phpstan no type specified SaveModelTest
1 parent 61072c9 commit f815fd4

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

tests/system/Models/SaveModelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function testSaveNewEntityWithDate(): void
291291
protected $returnType = 'object';
292292
protected $useSoftDeletes = true;
293293
protected $dateFormat = 'date';
294-
public $name = '';
294+
public string $name = '';
295295
};
296296

297297
$entity->name = 'Mark';

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 2063 errors
1+
# total 2062 errors
22

33
includes:
44
- argument.type.neon

utils/phpstan-baseline/missingType.property.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 48 errors
1+
# total 47 errors
22

33
parameters:
44
ignoreErrors:
@@ -236,8 +236,3 @@ parameters:
236236
message: '#^Property CodeIgniter\\Database\\Live\\MySQLi\\NumberNativeTest\:\:\$tests has no type specified\.$#'
237237
count: 1
238238
path: ../../tests/system/Database/Live/MySQLi/NumberNativeTest.php
239-
240-
-
241-
message: '#^Property CodeIgniter\\Model@anonymous/tests/system/Models/SaveModelTest\.php\:286\:\:\$name has no type specified\.$#'
242-
count: 1
243-
path: ../../tests/system/Models/SaveModelTest.php

0 commit comments

Comments
 (0)