Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e94abb1

Browse filesBrowse files
committed
Included Translation component too
1 parent 922c9e5 commit e94abb1
Copy full SHA for e94abb1

File tree

Expand file treeCollapse file tree

1 file changed

+8
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-6
lines changed

‎src/Symfony/Component/Translation/Resources/functions.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Resources/functions.php
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111

1212
namespace Symfony\Component\Translation;
1313

14-
/**
15-
* @author Nate Wiebe <nate@northern.co>
16-
*/
17-
function t(string $message, array $parameters = [], string $domain = null): TranslatableMessage
18-
{
19-
return new TranslatableMessage($message, $parameters, $domain);
14+
if (!\function_exists(t::class)) {
15+
/**
16+
* @author Nate Wiebe <nate@northern.co>
17+
*/
18+
function t(string $message, array $parameters = [], string $domain = null): TranslatableMessage
19+
{
20+
return new TranslatableMessage($message, $parameters, $domain);
21+
}
2022
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.