Problem/Motivation

With pager:

: [items[0].title] Integer value found, but a string is required/n[items[1].title] Integer value found, but a string is required/n[items[2].title] Integer value found, but a string is required/n[items[3].title] Integer value found, but a string is required in <em class="placeholder">Drupal\Core\Theme\Component\ComponentValidator-&gt;validateProps()</em>

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

grimreaper created an issue. See original summary.

grimreaper’s picture

Assigned: grimreaper » pdureau
Status: Active » Needs review
just_like_good_vibes’s picture

the check seems a bit weak.
what cases we have?
integers, strings, markup, render array ?!, bool, floats, arrays...? who knows
i guess we wan't to keep the normalizing efficient and simple while
protecting against bad data injected, whatever it comes
from.
do we add other cases?

just_like_good_vibes’s picture

more generally, do we need a better normalizing for string props? in that case the title of a link maybe normalized the same way string props are/would be normalized ?

pdureau’s picture

more generally, do we need a better normalizing for string props? in that case the title of a link maybe normalized the same way string props are/would be normalized ?

Unfortunately, we cant' apply StringPropType normalization to links item titles, because we discovered than links item titles can be renderables.

  • grimreaper committed e7baca91 on 2.0.x
    Issue #3490733 by grimreaper: LinkPropType normalization...again
    
pdureau’s picture

Assigned: pdureau » Unassigned
Status: Needs review » Fixed
pdureau’s picture

Title: LinkPropType normalization...again » [2.0.0-beta6] LinkPropType normalization...again
pdureau’s picture

Status: Fixed » Closed (fixed)