-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[11.x] Adds Dumpable
concern
#47122
Merged
Merged
[11.x] Adds Dumpable
concern
#47122
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
42df616
Adds `Support\Traits\Dumpable`
nunomaduro 48cce12
Use globals
nunomaduro 6d1c869
Includes dependency
nunomaduro 54dc635
Migrates `Stringable`
nunomaduro 71ccac9
Apply fixes from StyleCI
StyleCIBot 2c4e367
Migrates `EnumeratesValues`
nunomaduro 834ad88
Apply fixes from StyleCI
StyleCIBot fb61787
Uses var dumper
nunomaduro 6574680
Simplifies
nunomaduro ed33471
Removes include
nunomaduro 556968a
Migrates `Builder`
nunomaduro c613fe4
Removes reference to `VarDumper`
nunomaduro 94ed8b3
Simplifies `VarDumper`
nunomaduro ce576cd
Apply fixes from StyleCI
StyleCIBot 6f2d0b3
Migrates `InteractsWithInput`
nunomaduro bc1bbf9
Apply fixes from StyleCI
StyleCIBot 7664686
Migrates `Carbon`
nunomaduro 1f6ac9f
Migrates `TestResponse`
nunomaduro 4ec1c10
Apply fixes from StyleCI
StyleCIBot 8e871b5
MIgrates `Debugging`
nunomaduro 6163107
Avoids BC
nunomaduro 0847099
Uses `dump(...$args)`
nunomaduro 8ebc20f
Argument
nunomaduro e762028
Removes dependency
nunomaduro 218561a
Makes `dump` consistent
nunomaduro d95f661
Update Dumpable.php
taylorotwell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Illuminate\Support\Traits; | ||
|
||
trait Dumpable | ||
{ | ||
/** | ||
* Dump the instance and end the script. | ||
* | ||
* @param mixed ...$args | ||
* @return never | ||
*/ | ||
public function dd(...$args) | ||
{ | ||
$this->dump(...$args); | ||
|
||
dd(); | ||
} | ||
|
||
/** | ||
* Dump the instance. | ||
* | ||
* @param mixed ...$args | ||
* @return $this | ||
*/ | ||
public function dump(...$args) | ||
{ | ||
dump($this, ...$args); | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.