| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
namespace Carbon; |
| 15 |
|
| 16 |
use ReflectionMethod; |
| 17 |
use Symfony\Component\Translation; |
| 18 |
use Symfony\Contracts\Translation\TranslatorInterface; |
| 19 |
|
| 20 |
$transMethod = new ReflectionMethod( |
| 21 |
class_exists(TranslatorInterface::class) |
| 22 |
? TranslatorInterface::class |
| 23 |
: Translation\Translator::class, |
| 24 |
'trans', |
| 25 |
); |
| 26 |
|
| 27 |
require $transMethod->hasReturnType() |
| 28 |
? __DIR__.'/../../lazy/Carbon/TranslatorStrongType.php' |
| 29 |
: __DIR__.'/../../lazy/Carbon/TranslatorWeakType.php'; |
| 30 |
|
| 31 |
class Translator extends LazyTranslator |
| 32 |
{ |
| 33 |
|
| 34 |
} |