Skip to content

Commit 262a996

Browse files
committed
update phpstan
1 parent e21d252 commit 262a996

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

tests/system/Models/DeleteModelTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ public function testDeleteWithSoftDeleteThrowDatabaseExceptionWithoutWhereClause
308308
$this->model->delete($id);
309309
}
310310

311+
/**
312+
* @return iterable<string, array{mixed, class-string, string}>
313+
*/
311314
public static function emptyPkValues(): iterable
312315
{
313316
return [

tests/system/Models/InsertModelTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,9 @@ public function testInsertBatchWithInvalidPrimaryKeyWhenAutoIncrementDisabled($i
455455
$this->createModel(WithoutAutoIncrementModel::class)->insertBatch($insertData);
456456
}
457457

458+
/**
459+
* @return iterable<string, array{mixed, class-string, string}>
460+
*/
458461
public static function provideInvalidPrimaryKeyValues(): iterable
459462
{
460463
return [

tests/system/Models/UpdateModelTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,9 @@ public function testUpdateThrowDatabaseExceptionWithoutWhereClause($id, string $
576576
$this->model->update($id, ['name' => 'Foo Bar']);
577577
}
578578

579+
/**
580+
* @return iterable<string, array{mixed, class-string, string}>
581+
*/
579582
public static function provideUpdateThrowDatabaseExceptionWithoutWhereClause(): iterable
580583
{
581584
yield from [

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 2709 errors
1+
# total 2706 errors
22

33
includes:
44
- argument.type.neon

utils/phpstan-baseline/missingType.iterableValue.neon

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 1321 errors
1+
# total 1318 errors
22

33
parameters:
44
ignoreErrors:
@@ -5797,11 +5797,6 @@ parameters:
57975797
count: 1
57985798
path: ../../tests/system/I18n/TimeTest.php
57995799

5800-
-
5801-
message: '#^Method CodeIgniter\\Models\\DeleteModelTest\:\:emptyPkValues\(\) return type has no value type specified in iterable type iterable\.$#'
5802-
count: 1
5803-
path: ../../tests/system/Models/DeleteModelTest.php
5804-
58055800
-
58065801
message: '#^Method CodeIgniter\\Models\\FindModelTest\:\:provideAggregateAndGroupBy\(\) return type has no value type specified in iterable type iterable\.$#'
58075802
count: 1
@@ -5812,11 +5807,6 @@ parameters:
58125807
count: 1
58135808
path: ../../tests/system/Models/FindModelTest.php
58145809

5815-
-
5816-
message: '#^Method CodeIgniter\\Models\\InsertModelTest\:\:provideInvalidPrimaryKeyValues\(\) return type has no value type specified in iterable type iterable\.$#'
5817-
count: 1
5818-
path: ../../tests/system/Models/InsertModelTest.php
5819-
58205810
-
58215811
message: '#^Method CodeIgniter\\Models\\TimestampModelTest\:\:allowDatesPrepareOneRecord\(\) has parameter \$data with no value type specified in iterable type array\.$#'
58225812
count: 1
@@ -5827,11 +5817,6 @@ parameters:
58275817
count: 1
58285818
path: ../../tests/system/Models/TimestampModelTest.php
58295819

5830-
-
5831-
message: '#^Method CodeIgniter\\Models\\UpdateModelTest\:\:provideUpdateThrowDatabaseExceptionWithoutWhereClause\(\) return type has no value type specified in iterable type iterable\.$#'
5832-
count: 1
5833-
path: ../../tests/system/Models/UpdateModelTest.php
5834-
58355820
-
58365821
message: '#^Method CodeIgniter\\Publisher\\PublisherRestrictionsTest\:\:provideDefaultPublicRestrictions\(\) return type has no value type specified in iterable type iterable\.$#'
58375822
count: 1

0 commit comments

Comments
 (0)