<?php use function PHPStan\dumpType; final class SinglePickSKU { public function renderEditControls(string $id): string { preg_match('/(\d+)$/', $id, $result); $counter = ''; if (is_numeric($result[1])) { if ($result[1] < 10) { $counter = '0' . $result[1] . '. '; } else { $counter = $result[1] . '. '; } } var_dump($counter); $html = ''; $html .= doFoo($counter . 'abc'); return $html; } } function doFoo(string $s):string { return $s; } $s = new SinglePickSKU(); $s->renderEditControls('');
You have javascript disabled. You will not be able to edit any code.