Skip to content

Commit

Permalink
Issue #10: Fix PHP8 optional parameter declared before required param…
Browse files Browse the repository at this point in the history
…eter

 Fixes #10.
  • Loading branch information
laryn committed Jan 25, 2023
1 parent e61dbbd commit e80221b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replicate_ui.module
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function replicate_ui_access($type, $etid) {
/**
* Menu callback. Skip confirmation of replication and feed data directly.
*/
function replicate_ui_skip_confirm($confirm_function = NULL, $type, $entity_id) {
function replicate_ui_skip_confirm(string $confirm_function = NULL, $type, $entity_id) {
// convert from object to id if we got an object instead
if (is_object($entity_id)) {
$info = entity_get_info($type);
Expand Down

0 comments on commit e80221b

Please sign in to comment.