Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit b06a841

Browse files
committed
Changing 'continue' to 'break' inside switches to avoid PHP 7.3 warnings
1 parent 797c4d0 commit b06a841

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/Options.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,19 @@ public function setProfiler(array $options)
9999
// fall-through
100100
case 'flush_early':
101101
$this->profiler[$key] = (bool) $value;
102-
continue;
102+
break;
103103
case 'cache_dir':
104104
$this->profiler[$key] = (string) $value;
105-
continue;
105+
break;
106106
case 'matcher':
107107
$this->setMatcher($value);
108-
continue;
108+
break;
109109
case 'collectors':
110110
$this->setCollectors($value);
111-
continue;
111+
break;
112112
default:
113113
// unknown option
114-
continue;
114+
break;
115115
}
116116
}
117117
}
@@ -335,17 +335,17 @@ public function setToolbar(array $options)
335335
// fall-through
336336
case 'version_check':
337337
$this->toolbar[$key] = (bool) $value;
338-
continue;
338+
break;
339339
case 'position':
340340
if ($value !== 'bottom' && $value !== 'top') {
341341
$this->report->addError(sprintf(
342342
"['zenddevelopertools']['toolbar']['position'] must be 'top' or 'bottom', %s given.",
343343
$value
344344
));
345-
continue;
345+
break;
346346
}
347347
$this->toolbar[$key] = $value;
348-
continue;
348+
break;
349349
case 'entries':
350350
if (! is_array($value)) {
351351
$this->report->addError(sprintf(
@@ -357,16 +357,16 @@ public function setToolbar(array $options)
357357
foreach ($value as $collector => $template) {
358358
if ($template === false || $template === null) {
359359
unset($this->toolbar[$key][$collector]);
360-
continue;
360+
break;
361361
}
362362

363363
$this->toolbar[$key][$collector] = $template;
364364
}
365365

366-
continue;
366+
break;
367367
default:
368368
// Unknown type; ignore
369-
continue;
369+
break;
370370
}
371371
}
372372
}

0 commit comments

Comments
 (0)