File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ return new class extends Operation
220
220
// some code
221
221
}
222
222
223
- public function enabledTransactions (): bool
223
+ public function hasTransactions (): bool
224
224
{
225
225
return true;
226
226
}
Original file line number Diff line number Diff line change 12
12
## Minor-Impact Changes
13
13
14
14
- [ Changed directory location] ( #changed-directory-location )
15
- - [ Removed database transaction properties ] ( #removed- database-transaction-properties )
15
+ - [ Database transactions ] ( #database-transactions )
16
16
- [ Removed ` $async ` property] ( #removed-async-property )
17
17
18
18
## Low-Impact Changes
@@ -142,14 +142,16 @@ class Names
142
142
143
143
File storage directory changed to ` operations ` from ` actions ` .
144
144
145
- ## Removed database transaction properties
145
+ ## Database transactions
146
146
147
147
The following properties have been removed:
148
148
149
149
- ` $transactions `
150
150
- ` $transactionAttempts `
151
151
152
- Instead, you can use the previously available ` enabledTransactions ` and ` transactionAttempts ` methods.
152
+ Instead, you can use the ` hasTransactions ` and ` transactionAttempts ` methods.
153
+
154
+ The ` enabledTransactions ` method has been renamed to ` hasTransactions ` .
153
155
154
156
## Removed ` $async ` property
155
157
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ protected function move(string $from, string $to): void
48
48
49
49
$ content = $ this ->replaceNamespace ($ content );
50
50
$ content = $ this ->replaceClassName ($ content );
51
+ $ content = $ this ->replaceMethod ($ content );
51
52
$ content = $ this ->replaceDeclareStrictType ($ content );
52
53
$ content = $ this ->replaceWithInvoke ($ content );
53
54
@@ -94,6 +95,13 @@ protected function replaceClassName(string $content): string
94
95
->toString ();
95
96
}
96
97
98
+ protected function replaceMethod (string $ content ): string
99
+ {
100
+ return Str::of ($ content )
101
+ ->replace ('enabledTransactions ' , 'hasTransactions ' )
102
+ ->toString ();
103
+ }
104
+
97
105
protected function replaceDeclareStrictType (string $ content ): string
98
106
{
99
107
return Str::of ($ content )
You can’t perform that action at this time.
0 commit comments