Skip to content

Commit 1a82107

Browse files
committed
refactor: fix phpstan no type specified ValidationModelTest
1 parent eb6ac9f commit 1a82107

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

tests/system/Models/ValidationModelTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ public function testValidationPassesWithMissingFields(): void
243243
public function testValidationWithGroupName(): void
244244
{
245245
$config = new class () extends Validation {
246+
/** @var array<string, string|array<int, string>> @grouptest */
246247
public $grouptest = [
247248
'id' => 'is_natural_no_zero',
248249
'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)