8000 minor #48599 [VarDumper] Update types for dd() (derrabus) · symfony/symfony@233b9eb · GitHub
[go: up one dir, main page]

Skip to content

Commit 233b9eb

Browse files
committed
minor #48599 [VarDumper] Update types for dd() (derrabus)
This PR was merged into the 6.3 branch. Discussion ---------- [VarDumper] Update types for dd() | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Our beloved `dd()` function gets the PHP 8.1 t 8000 reatment it deserves. 🚀 Commits ------- f7e4693 Update types for dd()
2 parents c7f82de + f7e4693 commit 233b9eb

File tree

1 file changed

+1
-4
lines changed
  • src/Symfony/Component/VarDumper/Resources/functions

1 file changed

+1
-4
lines changed

src/Symfony/Component/VarDumper/Resources/functions/dump.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ function dump(mixed $var, mixed ...$moreVars): mixed
3232
}
3333

3434
if (!function_exists('dd')) {
35-
/**
36-
* @return never
37-
*/
38-
function dd(...$vars): void
35+
function dd(mixed ...$vars): never
3936
{
4037
if (!in_array(\PHP_SAPI, ['cli', 'phpdbg'], true) && !headers_sent()) {
4138
header('HTTP/1.1 500 Internal Server Error');

0 commit comments

Comments
 (0)
0