Skip to content

Commit 68146b2

Browse files
adiprsaneznaika0
andauthored
refactor: fix phpstan no type specified ValidationModelTest (#10008)
Co-authored-by: neznaika0 <ozornick.ks@gmail.com>
1 parent 0a5ce99 commit 68146b2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

tests/system/Models/ValidationModelTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,9 @@ public function testValidationPassesWithMissingFields(): void
243243
public function testValidationWithGroupName(): void
244244
{
245245
$config = new class () extends Validation {
246+
/**
247+
* @var array{'id': string, 'name': array{string, string}, 'token': string}
248+
*/
246249
public $grouptest = [
247250
'id' => 'is_natural_no_zero',
248251
'name' => [

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 2117 errors
1+
# total 2116 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 102 errors
1+
# total 101 errors
22

33
parameters:
44
ignoreErrors:
@@ -506,8 +506,3 @@ parameters:
506506
message: '#^Property CodeIgniter\\Entity\\Entity@anonymous/tests/system/Models/UpdateModelTest\.php\:401\:\:\$updated_at has no type specified\.$#'
507507
count: 1
508508
path: ../../tests/system/Models/UpdateModelTest.php
509-
510-
-
511-
message: '#^Property Config\\Validation@anonymous/tests/system/Models/ValidationModelTest\.php\:245\:\:\$grouptest has no type specified\.$#'
512-
count: 1
513-
path: ../../tests/system/Models/ValidationModelTest.php

0 commit comments

Comments
 (0)