Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a55916a

Browse filesBrowse files
[VarDumper] Add dd() helper == dump() + die()
1 parent 4429c9b commit a55916a
Copy full SHA for a55916a

File tree

1 file changed

+13
-0
lines changed
Filter options
  • src/Symfony/Component/VarDumper/Resources/functions

1 file changed

+13
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/VarDumper/Resources/functions/dump.php
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,16 @@ function dump($var, ...$moreVars)
3030
return $var;
3131
}
3232
}
33+
34+
if (!function_exists('dd')) {
35+
function dd($var, ...$moreVars)
36+
{
37+
VarDumper::dump($var);
38+
39+
foreach ($moreVars as $var) {
40+
VarDumper::dump($var);
41+
}
42+
43+
exit(1);
44+
}
45+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.