Skip to content

Commit 9e990b5

Browse files
refactor: add precise return type to CodeIgniter::getPerformanceStats() (#10458)
1 parent 22a237c commit 9e990b5

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎system/CodeIgniter.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,8 @@ public function cachePage(Cache $config)
775775

776776
/**
777777
* Returns an array with our basic performance stats collected.
778+
*
779+
* @return array{startTime: float|null, totalTime: float}
778780
*/
779781
public function getPerformanceStats(): array
780782
{

‎utils/phpstan-baseline/missingType.iterableValue.neon‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
# total 1132 errors
1+
# total 1131 errors
22

33
parameters:
44
ignoreErrors:
5-
-
6-
message: '#^Method CodeIgniter\\CodeIgniter\:\:getPerformanceStats\(\) return type has no value type specified in iterable type array\.$#'
7-
count: 1
8-
path: ../../system/CodeIgniter.php
9-
105
-
116
message: '#^Method CodeIgniter\\Commands\\ListCommands\:\:listFull\(\) has parameter \$commands with no value type specified in iterable type array\.$#'
127
count: 1

0 commit comments

Comments
 (0)