You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -236,9 +242,13 @@ public function setFormat(string $format)
236
242
* Sets the redraw frequency.
237
243
*
238
244
* @param int|float $freq The frequency in steps
245
+
*
246
+
* @deprecated since version 4.1, to be removed in 5.0. Use $redrawFrequency argument in constructor instead.
239
247
*/
240
248
publicfunctionsetRedrawFrequency(int$freq)
241
249
{
250
+
@trigger_error(sprintf('The %s() method is deprecated since Symfony 4.1 and will be removed in 5.0. Use $redrawFrequency argument in constructor instead.', __METHOD__), E_USER_DEPRECATED);
251
+
242
252
$this->redrawFreq = max($freq, 1);
243
253
}
244
254
@@ -290,7 +300,12 @@ public function setProgress(int $step)
* @expectedDeprecation The Symfony\Component\Console\Helper\ProgressBar::setRedrawFrequency() method is deprecated since Symfony 4.1 and will be removed in 5.0. Use $redrawFrequency argument in constructor instead.
0 commit comments