Internal: Typed Display::return_icon() more strongly

pull/5037/head
Yannick Warnier 2 years ago
parent 04a0a3ddff
commit d39e2e17e3
  1. 14
      public/main/inc/lib/display.lib.php

@ -653,13 +653,13 @@ class Display
* @version Feb 2011 * @version Feb 2011
*/ */
public static function return_icon( public static function return_icon(
$image, string $image,
$alt_text = '', ?string $alt_text = '',
$additional_attributes = [], ?array $additional_attributes = [],
$size = ICON_SIZE_SMALL, ?int $size = ICON_SIZE_SMALL,
$show_text = true, ?bool $show_text = true,
$return_only_path = false, ?bool $return_only_path = false,
$loadThemeIcon = true ?bool $loadThemeIcon = true
) { ) {
$code_path = api_get_path(SYS_PUBLIC_PATH); $code_path = api_get_path(SYS_PUBLIC_PATH);
$w_code_path = api_get_path(WEB_PUBLIC_PATH); $w_code_path = api_get_path(WEB_PUBLIC_PATH);

Loading…
Cancel
Save