File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -367,20 +367,23 @@ public function addComment($val)
367
367
/** @deprecated */
368
368
public function setDocuments (array $ s )
369
369
{
370
+ trigger_error (__METHOD__ . '() is deprecated, use similar setComment() ' , E_USER_DEPRECATED );
370
371
return $ this ->setComment (implode ("\n" , $ s ));
371
372
}
372
373
373
374
374
375
/** @deprecated */
375
376
public function getDocuments ()
376
377
{
378
+ trigger_error (__METHOD__ . '() is deprecated, use similar getComment() ' , E_USER_DEPRECATED );
377
379
return $ this ->comment ? [$ this ->comment ] : [];
378
380
}
379
381
380
382
381
383
/** @deprecated */
382
384
public function addDocument ($ s )
383
385
{
386
+ trigger_error (__METHOD__ . '() is deprecated, use addComment() ' , E_USER_DEPRECATED );
384
387
return $ this ->addComment ($ s );
385
388
}
386
389
Original file line number Diff line number Diff line change @@ -409,20 +409,23 @@ public function addComment($val)
409
409
/** @deprecated */
410
410
public function setDocuments (array $ s )
411
411
{
412
+ trigger_error (__METHOD__ . '() is deprecated, use similar setComment() ' , E_USER_DEPRECATED );
412
413
return $ this ->setComment (implode ("\n" , $ s ));
413
414
}
414
415
415
416
416
417
/** @deprecated */
417
418
public function getDocuments ()
418
419
{
420
+ trigger_error (__METHOD__ . '() is deprecated, use similar getComment() ' , E_USER_DEPRECATED );
419
421
return $ this ->comment ? [$ this ->comment ] : [];
420
422
}
421
423
422
424
423
425
/** @deprecated */
424
426
public function addDocument ($ s )
425
427
{
428
+ trigger_error (__METHOD__ . '() is deprecated, use addComment() ' , E_USER_DEPRECATED );
426
429
return $ this ->addComment ($ s );
427
430
}
428
431
Original file line number Diff line number Diff line change @@ -64,20 +64,23 @@ public function addComment($val)
64
64
/** @deprecated */
65
65
public function setDocuments (array $ s )
66
66
{
67
+ trigger_error (__METHOD__ . '() is deprecated, use similar setComment() ' , E_USER_DEPRECATED );
67
68
return $ this ->setComment (implode ("\n" , $ s ));
68
69
}
69
70
70
71
71
72
/** @deprecated */
72
73
public function getDocuments ()
73
74
{
75
+ trigger_error (__METHOD__ . '() is deprecated, use similar getComment() ' , E_USER_DEPRECATED );
74
76
return $ this ->comment ? [$ this ->comment ] : [];
75
77
}
76
78
77
79
78
80
/** @deprecated */
79
81
public function addDocument ($ s )
80
82
{
83
+ trigger_error (__METHOD__ . '() is deprecated, use addComment() ' , E_USER_DEPRECATED );
81
84
return $ this ->addComment ($ s );
82
85
}
83
86
Original file line number Diff line number Diff line change @@ -170,20 +170,23 @@ public function addComment($val)
170
170
/** @deprecated */
171
171
public function setDocuments (array $ s )
172
172
{
173
+ trigger_error (__METHOD__ . '() is deprecated, use similar setComment() ' , E_USER_DEPRECATED );
173
174
return $ this ->setComment (implode ("\n" , $ s ));
174
- }
175
+ }
175
176
176
177
177
178
/** @deprecated */
178
179
public function getDocuments ()
179
180
{
181
+ trigger_error (__METHOD__ . '() is deprecated, use similar getComment() ' , E_USER_DEPRECATED );
180
182
return $ this ->comment ? [$ this ->comment ] : [];
181
183
}
182
184
183
185
184
186
/** @deprecated */
185
187
public function addDocument ($ s )
186
188
{
189
+ trigger_error (__METHOD__ . '() is deprecated, use addComment() ' , E_USER_DEPRECATED );
187
190
return $ this ->addComment ($ s );
188
191
}
189
192
You can’t perform that action at this time.
0 commit comments