Files
roi-theme/wp-content/plugins/query-monitor/classes/Deprecated_Argument_Run.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

41 lines
1.0 KiB
PHP
Executable File

<?php declare(strict_types = 1);
/**
* Class representing a deprecated argument being used.
*
* @package query-monitor
*/
/**
* @extends QM_Wrong<array{
* function_name: string,
* message: string,
* version: string,
* }>
*/
final class QM_Deprecated_Argument_Run extends QM_Wrong {
public function get_message(): string {
[
'function_name' => $function_name,
'message' => $message,
'version' => $version,
] = $this->args;
if ( $message ) {
return sprintf(
/* translators: 1: PHP function name, 2: Version number, 3: Optional message regarding the change. */
__( 'Function %1$s was called with an argument that is deprecated since version %2$s! %3$s', 'query-monitor' ),
$function_name,
$version,
$message
);
}
return sprintf(
/* translators: 1: PHP function name, 2: Version number. */
__( 'Function %1$s was called with an argument that is deprecated since version %2$s with no alternative available.', 'query-monitor' ),
$function_name,
$version
);
}
}