Skip to content

[Icons] config/recerence.php ux_icons.aliases wrong type #3193

@fracsi

Description

@fracsi

Not sure to report here or to Symfony repo.

reference.php introduced in Symfony 7.4 contains wrong type for aliases config.

/**
 * @psalm-type UxIconsConfig = array{
 *     icon_dir?: scalar|null, // The local directory where icons are stored. // Default: "%kernel.project_dir%/assets/icons"
 *     default_icon_attributes?: mixed, // Default attributes to add to all icons. // Default: {"fill":"currentColor"}
 *     icon_sets?: array<string, array{ // the icon set prefix (e.g. "acme") // Default: []
 *         path?: scalar|null, // The local icon set directory path. (cannot be used with 'alias')
 *         alias?: scalar|null, // The remote icon set identifier. (cannot be used with 'path')
 *         icon_attributes?: list<mixed>,
 *     }>,
 *     aliases?: list<scalar|null>, <-- THIS LINE HERE
 *     iconify?: bool|array{ // Configuration for the remote icon service.
 *         enabled?: bool, // Default: true
 *         on_demand?: bool, // Whether to download icons "on demand". // Default: true
 *         endpoint?: scalar|null, // The endpoint for the Iconify icons API. // Default: "https://api.iconify.design"
 *     },
 *     ignore_not_found?: bool, // Ignore error when an icon is not found. Set to 'true' to fail silently. // Default: false
 * }
 */

By the info and example (symfony console config:dump-reference ux_icons), it should be array<string, string>.

ux_icons:
    # Icon aliases (map of alias => full name).
    aliases:              []

        # Examples:
        # dots:                'clarity:ellipsis-horizontal-line'
        # privacy:             'bi:cookie'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions