Commit fefa5330 authored by bojanz's avatar bojanz

Replace accidental long-array usage.

parent 368c28ec
......@@ -27,7 +27,7 @@ class CountryItem extends FieldItemBase {
* {@inheritdoc}
*/
public static function schema(FieldStorageDefinitionInterface $field_definition) {
return array(
return [
'columns' => [
'value' => [
'type' => 'char',
......@@ -38,7 +38,7 @@ class CountryItem extends FieldItemBase {
'indexes' => [
'value' => ['value'],
],
);
];
}
/**
......
......@@ -501,9 +501,9 @@ class AddressDefaultWidgetTest extends JavascriptTestBase {
* will be displayed.
*/
protected function assertOptionSelected($id, $option, $message = '') {
$elements = $this->xpath('//select[@name=:id]//option[@value=:option]', array(':id' => $id, ':option' => $option));
$elements = $this->xpath('//select[@name=:id]//option[@value=:option]', [':id' => $id, ':option' => $option]);
foreach ($elements as $element) {
$this->assertNotEmpty($element->isSelected(), $message ? $message : new FormattableMarkup('Option @option for field @id is selected.', array('@option' => $option, '@id' => $id)));
$this->assertNotEmpty($element->isSelected(), $message ? $message : new FormattableMarkup('Option @option for field @id is selected.', ['@option' => $option, '@id' => $id]));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment