Skip to content

Commit cdfbab2

Browse files
committed
docs: restore comments that are deleted by rector
1 parent d6879f8 commit cdfbab2

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

app/Views/errors/cli/error_exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
$args = implode(', ', array_map(static fn ($value) => match (true) {
5454
is_object($value) => 'Object(' . $value::class . ')',
5555
is_array($value) => count($value) ? '[...]' : '[]',
56-
$value === null => 'null',
56+
$value === null => 'null', // return the lowercased version
5757
default => var_export($value, true),
5858
}, array_values($error['args'] ?? [])));
5959

system/Cache/Handlers/PredisHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public function get(string $key)
9090

9191
return match ($data['__ci_type']) {
9292
'array', 'object' => unserialize($data['__ci_value']),
93+
// Yes, 'double' is returned and NOT 'float'
9394
'boolean', 'integer', 'double', 'string', 'NULL' => settype($data['__ci_value'], $data['__ci_type']) ? $data['__ci_value'] : null,
9495
default => null,
9596
};

system/Cache/Handlers/RedisHandler.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function get(string $key)
116116

117117
return match ($data['__ci_type']) {
118118
'array', 'object' => unserialize($data['__ci_value']),
119+
// Yes, 'double' is returned and NOT 'float'
119120
'boolean', 'integer', 'double', 'string', 'NULL' => settype($data['__ci_value'], $data['__ci_type']) ? $data['__ci_value'] : null,
120121
default => null,
121122
};

system/View/Filters.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ public static function round(string $value, $precision = 2, string $type = 'comm
235235
'common' => round((float) $value, $precision),
236236
'ceil' => ceil((float) $value),
237237
'floor' => floor((float) $value),
238-
default => $value,
238+
// Still here, just return the value.
239+
default => $value,
239240
};
240241
}
241242

0 commit comments

Comments
 (0)