Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
migration system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Oct 2021 at 15:40 UTC
Updated:
21 Oct 2021 at 10:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottComment #3
alexpottComment #4
daffie commentedLooks good to me.
The third parameter of
mb_substr()is allowed to be NULL. Therefor no change needed for the variable $length.Comment #5
larowlanIs this change required?
Comment #6
alexpott@larowlan yes. That method shoudl return a string but our mock returns a NULL so we need to fix that. See \Drupal\Core\Database\Connection::setPrefix() and \Drupal\Core\Database\Connection::tablePrefix(). The method will always return a string in reality because
$this->prefixes[$table];or$this->prefixes['default'];is always set.Comment #8
larowlanThanks for the explanation @alexpott
Committed 8ce8eb9 and pushed to 9.3.x. Thanks!