use array as return type hint

array_merge will not work with any iterable
parent 3efabd49
...@@ -3603,7 +3603,7 @@ abstract class AbstractPlatform ...@@ -3603,7 +3603,7 @@ abstract class AbstractPlatform
/** /**
* @return string[] * @return string[]
*/ */
protected function getLikeWildcardCharacters() : iterable protected function getLikeWildcardCharacters() : array
{ {
return ['%', '_']; return ['%', '_'];
} }
......
...@@ -120,7 +120,7 @@ class SQLServer2008Platform extends SQLServer2005Platform ...@@ -120,7 +120,7 @@ class SQLServer2008Platform extends SQLServer2005Platform
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
protected function getLikeWildcardCharacters() : iterable protected function getLikeWildcardCharacters() : array
{ {
return array_merge(parent::getLikeWildcardCharacters(), ['[', ']', '^']); return array_merge(parent::getLikeWildcardCharacters(), ['[', ']', '^']);
} }
......
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