File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Pipeline implements PipelineContract
53
53
*
54
54
* @var bool
55
55
*/
56
- protected $ withinTransactions = false ;
56
+ protected $ withinTransaction = false ;
57
57
58
58
/**
59
59
* Create a new class instance.
@@ -130,7 +130,7 @@ public function then(Closure $destination)
130
130
);
131
131
132
132
try {
133
- return $ this ->withinTransactions
133
+ return $ this ->withinTransaction
134
134
? $ this ->getContainer ()->make ('db ' )->transaction (fn () => $ pipeline ($ this ->passable ))
135
135
: $ pipeline ($ this ->passable );
136
136
} finally {
@@ -257,12 +257,12 @@ protected function pipes()
257
257
/**
258
258
* Execute each pipeline step within a database transaction.
259
259
*
260
- * @param bool $withinTransactions
260
+ * @param bool $withinTransaction
261
261
* @return $this
262
262
*/
263
- public function withinTransactions (bool $ withinTransactions = true )
263
+ public function withinTransaction (bool $ withinTransaction = true )
264
264
{
265
- $ this ->withinTransactions = $ withinTransactions ;
265
+ $ this ->withinTransaction = $ withinTransaction ;
266
266
267
267
return $ this ;
268
268
}
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ public function testPipelineThrowsExceptionWhenUsingTransactionsWithoutContainer
262
262
263
263
(new Pipeline )->send ('data ' )
264
264
->through (PipelineTestPipeOne::class)
265
- ->withinTransactions ()
265
+ ->withinTransaction ()
266
266
->then (function ($ piped ) {
267
267
return $ piped ;
268
268
});
You can’t perform that action at this time.
0 commit comments