Optional parameter is provided before required in sms_track_sms_send()
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3316783. --> Reported by: [dahousecat](https://www.drupal.org/user/1410992) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>When using PHP 8 the warning "Optional parameter is provided before required" is displayed.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Use the module with PHP 8.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Change <code>function sms_track_sms_send($number, $message, &amp;$options = array(), $gateway) {</code><br> to <code>function sms_track_sms_send($number, $message, &amp;$options, $gateway) {</code></p> <p>This function is called from <code>sms_send()</code> where <code>$options</code> is already set with a default value of an empty array.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>Remove <code>= array()</code></p> <h3 id="summary-ui-changes">User interface changes</h3> <p>None</p> <h3 id="summary-api-changes">API changes</h3> <p>None</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>None</p>
issue