Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 1340d37

Browse files
committed
Rename $function to prevent lint error
1 parent fa44eef commit 1340d37

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Domain/Bootstrap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,33 +455,33 @@ function () {
455455
/**
456456
* Throws a deprecation notice for a dependency without breaking requests.
457457
*
458-
* @param string $function Class or function being deprecated.
458+
* @param string $function_name Class or function being deprecated.
459459
* @param string $version Version in which it was deprecated.
460460
* @param string $replacement Replacement class or function, if applicable.
461461
* @param string $trigger_error_version Optional version to start surfacing this as a PHP error rather than a log. Defaults to $version.
462462
*/
463-
protected function deprecated_dependency( $function, $version, $replacement = '', $trigger_error_version = '' ) {
463+
protected function deprecated_dependency( $function_name, $version, $replacement = '', $trigger_error_version = '' ) {
464464
if ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) {
465465
return;
466466
}
467467

468468
$trigger_error_version = $trigger_error_version ? $trigger_error_version : $version;
469469
$error_message = $replacement ? sprintf(
470470
'%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.',
471-
$function,
471+
$function_name,
472472
$version,
473473
$replacement
474474
) : sprintf(
475475
'%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.',
476-
$function,
476+
$function_name,
477477
$version
478478
);
479479
/**
480480
* Fires when a deprecated function is called.
481481
*
482482
* @since 7.3.0
483483
*/
484-
do_action( 'deprecated_function_run', $function, $replacement, $version );
484+
do_action( 'deprecated_function_run', $function_name, $replacement, $version );
485485

486486
$log_error = false;
487487

0 commit comments

Comments
 (0)