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 1c1e2d9

Browse filesBrowse files
committed
minor #43343 [VarDumper] declare that dd() never returns (caugner)
This PR was merged into the 5.4 branch. Discussion ---------- [VarDumper] declare that dd() never returns | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | This change helps IDEs and static analyzers to understand that code after a `dd()` call isn't executed. Commits ------- 3d9699d chore(VarDumper): declare that dd() never returns
2 parents ab7f816 + 3d9699d commit 1c1e2d9
Copy full SHA for 1c1e2d9

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
  • src/Symfony/Component/VarDumper/Resources/functions
Expand file treeCollapse file tree

1 file changed

+3
-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
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ function dump($var, ...$moreVars)
3232
}
3333

3434
if (!function_exists('dd')) {
35+
/**
36+
* @return never
37+
*/
3538
function dd(...$vars)
3639
{
3740
foreach ($vars as $v) {

0 commit comments

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