mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[ticket/13713] Fix tests for PHP 5.6
PHPBB3-13713
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
namespace phpbb\textformatter\s9e;
|
||||
|
||||
use s9e\TextFormatter\Utils;
|
||||
use s9e\TextFormatter\Utils as TextFormatterUtils;
|
||||
|
||||
class mention_helper
|
||||
{
|
||||
@@ -117,11 +117,11 @@ class mention_helper
|
||||
|
||||
// TODO: think about optimization for caching colors.
|
||||
$this->get_colors(
|
||||
Utils::getAttributeValues($xml, 'MENTION', 'user_id'),
|
||||
Utils::getAttributeValues($xml, 'MENTION', 'group_id')
|
||||
TextFormatterUtils::getAttributeValues($xml, 'MENTION', 'user_id'),
|
||||
TextFormatterUtils::getAttributeValues($xml, 'MENTION', 'group_id')
|
||||
);
|
||||
|
||||
return Utils::replaceAttributes(
|
||||
return TextFormatterUtils::replaceAttributes(
|
||||
$xml,
|
||||
'MENTION',
|
||||
function ($attributes) use ($user_profile_url, $group_profile_url)
|
||||
|
@@ -44,6 +44,9 @@ services:
|
||||
text_formatter.s9e.quote_helper:
|
||||
synthetic: true
|
||||
|
||||
text_formatter.s9e.mention_helper:
|
||||
synthetic: true
|
||||
|
||||
text_formatter.parser:
|
||||
synthetic: true
|
||||
|
||||
|
Reference in New Issue
Block a user