Skip to content

Commit 3226c45

Browse files
committed
update phpstan
1 parent 1df62f9 commit 3226c45

5 files changed

Lines changed: 11 additions & 17 deletions

File tree

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 2662 errors
1+
# total 2659 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 1320 errors
1+
# total 1317 errors
22

33
parameters:
44
ignoreErrors:
@@ -5792,11 +5792,6 @@ parameters:
57925792
count: 1
57935793
path: ../../tests/system/I18n/TimeTest.php
57945794

5795-
-
5796-
message: '#^Method CodeIgniter\\Models\\DeleteModelTest\:\:emptyPkValues\(\) return type has no value type specified in iterable type iterable\.$#'
5797-
count: 1
5798-
path: ../../tests/system/Models/DeleteModelTest.php
5799-
58005795
-
58015796
message: '#^Method CodeIgniter\\Models\\FindModelTest\:\:provideAggregateAndGroupBy\(\) return type has no value type specified in iterable type iterable\.$#'
58025797
count: 1
@@ -5807,11 +5802,6 @@ parameters:
58075802
count: 1
58085803
path: ../../tests/system/Models/FindModelTest.php
58095804

5810-
-
5811-
message: '#^Method CodeIgniter\\Models\\InsertModelTest\:\:provideInvalidPrimaryKeyValues\(\) return type has no value type specified in iterable type iterable\.$#'
5812-
count: 1
5813-
path: ../../tests/system/Models/InsertModelTest.php
5814-
58155805
-
58165806
message: '#^Method CodeIgniter\\Models\\TimestampModelTest\:\:allowDatesPrepareOneRecord\(\) has parameter \$data with no value type specified in iterable type array\.$#'
58175807
count: 1
@@ -5822,11 +5812,6 @@ parameters:
58225812
count: 1
58235813
path: ../../tests/system/Models/TimestampModelTest.php
58245814

5825-
-
5826-
message: '#^Method CodeIgniter\\Models\\UpdateModelTest\:\:provideUpdateThrowDatabaseExceptionWithoutWhereClause\(\) return type has no value type specified in iterable type iterable\.$#'
5827-
count: 1
5828-
path: ../../tests/system/Models/UpdateModelTest.php
5829-
58305815
-
58315816
message: '#^Method CodeIgniter\\Publisher\\PublisherRestrictionsTest\:\:provideDefaultPublicRestrictions\(\) return type has no value type specified in iterable type iterable\.$#'
58325817
count: 1

0 commit comments

Comments
 (0)