website/errors/argument.sscanf.md
<?php declare(strict_types = 1);
sscanf('42 hello', '%d%d', $number);
The format string passed to sscanf() contains placeholders that expect a corresponding variable argument for each one. When sscanf() is called with additional arguments beyond the format string, each % placeholder must have a matching variable to store the scanned value. A mismatch between the number of placeholders and the number of provided variables means some values will not be captured.
Pass the correct number of variable arguments to match the format string placeholders:
<?php declare(strict_types = 1);
-sscanf('42 hello', '%d%d', $number);
+sscanf('42 hello', '%d%d', $number, $other);
Or adjust the format string to match the number of arguments:
<?php declare(strict_types = 1);
-sscanf('42 hello', '%d%d', $number);
+sscanf('42 hello', '%d', $number);