<?php declare(strict_types=1); function wantString(string $s): void {}; $str = 'foo'; wantString($str); static function() use(&$str): void { $str = 42; }; wantString($str);
You have javascript disabled. You will not be able to edit any code.