File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ protected function initializeStepComponents(StepExecution $stepExecution)
249
249
*/
250
250
private function handleStepExecutionWarning (StepExecution $ stepExecution , $ class , InvalidItemException $ e )
251
251
{
252
- $ stepExecution ->addError ($ class , $ e ->getMessage (), $ e ->getItem ());
252
+ $ stepExecution ->addWarning ($ class , $ e ->getMessage (), $ e ->getItem ());
253
253
$ this ->dispatchInvalidItemEvent ($ class , $ e ->getMessage (), $ e ->getItem ());
254
254
}
255
255
}
Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ public function testDispatchReaderInvalidItemException()
193
193
$ this ->itemStep ->setWriter ($ writer );
194
194
195
195
$ stepExecution ->expects ($ this ->once ())
196
- ->method ('addError ' )
196
+ ->method ('addWarning ' )
197
197
->with (
198
198
get_class ($ reader ),
199
199
'The read item is invalid ' ,
@@ -251,7 +251,7 @@ public function testDispatchProcessInvalidItemException()
251
251
$ this ->itemStep ->setWriter ($ writer );
252
252
253
253
$ stepExecution ->expects ($ this ->once ())
254
- ->method ('addError ' )
254
+ ->method ('addWarning ' )
255
255
->with (
256
256
get_class ($ processor ),
257
257
'The processed item is invalid ' ,
@@ -312,7 +312,7 @@ public function testDispatchWriteInvalidItemException()
312
312
$ this ->itemStep ->setWriter ($ writer );
313
313
314
314
$ stepExecution ->expects ($ this ->once ())
315
- ->method ('addError ' )
315
+ ->method ('addWarning ' )
316
316
->with (
317
317
get_class ($ writer ),
318
318
'The written item is invalid ' ,
You can’t perform that action at this time.
0 commit comments