Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #0
Problem/Motivation
StringItem adds a 'length' value to its schema corresponding to its 'max_length' setting. This setting can be sourced in an annotation, however, in which case it is not a PHP integer, but a string. It is not explicitly casted to (int), thus it gets added to the schema definition as a string.
Proposed resolution
Add an explicit cast to (int) to the 'length' schema value in StringItem.
Remaining tasks
User interface changes
-
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | 2209071-1-string-item-length-schema-int.patch | 693 bytes | tstoeckler |
Comments
Comment #1
tstoecklerHere we go.
Comment #2
lhangea CreditAttribution: lhangea commentedPatch applied cleanly.
Comment #3
webchickCommitted and pushed to 8.x. Thanks!