File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/Illuminate/Foundation/Concerns Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ trait ResolvesDumpSource
32
32
/**
33
33
* The source resolver.
34
34
*
35
- * @var (callable(): (array{0: string, 1: string, 2: int|null}|null))|null
35
+ * @var (callable(): (array{0: string, 1: string, 2: int|null}|null))|null|false
36
36
*/
37
37
protected static $ dumpSourceResolver ;
38
38
@@ -43,6 +43,10 @@ trait ResolvesDumpSource
43
43
*/
44
44
public function resolveDumpSource ()
45
45
{
46
+ if (static ::$ dumpSourceResolver === false ) {
47
+ return null ;
48
+ }
49
+
46
50
if (static ::$ dumpSourceResolver ) {
47
51
return call_user_func (static ::$ dumpSourceResolver );
48
52
}
@@ -161,4 +165,14 @@ public static function resolveDumpSourceUsing($callable)
161
165
{
162
166
static ::$ dumpSourceResolver = $ callable ;
163
167
}
168
+
169
+ /**
170
+ * Don't include the location / file of the dump in dumps.
171
+ *
172
+ * @return void
173
+ */
174
+ public static function dontIncludeSource ()
175
+ {
176
+ static ::$ dumpSourceResolver = false ;
177
+ }
164
178
}
You can’t perform that action at this time.
0 commit comments