[ticket/13713] Fix tests for PHP 5.6

PHPBB3-13713
This commit is contained in:
lavigor 2018-06-24 20:33:28 +03:00 committed by Marc Alexander
parent 90ee0993e6
commit fd92abda59
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 7 additions and 4 deletions

View file

@ -13,7 +13,7 @@
namespace phpbb\textformatter\s9e; namespace phpbb\textformatter\s9e;
use s9e\TextFormatter\Utils; use s9e\TextFormatter\Utils as TextFormatterUtils;
class mention_helper class mention_helper
{ {
@ -117,11 +117,11 @@ class mention_helper
// TODO: think about optimization for caching colors. // TODO: think about optimization for caching colors.
$this->get_colors( $this->get_colors(
Utils::getAttributeValues($xml, 'MENTION', 'user_id'), TextFormatterUtils::getAttributeValues($xml, 'MENTION', 'user_id'),
Utils::getAttributeValues($xml, 'MENTION', 'group_id') TextFormatterUtils::getAttributeValues($xml, 'MENTION', 'group_id')
); );
return Utils::replaceAttributes( return TextFormatterUtils::replaceAttributes(
$xml, $xml,
'MENTION', 'MENTION',
function ($attributes) use ($user_profile_url, $group_profile_url) function ($attributes) use ($user_profile_url, $group_profile_url)

View file

@ -44,6 +44,9 @@ services:
text_formatter.s9e.quote_helper: text_formatter.s9e.quote_helper:
synthetic: true synthetic: true
text_formatter.s9e.mention_helper:
synthetic: true
text_formatter.parser: text_formatter.parser:
synthetic: true synthetic: true