AbstractMacro.php
2 years ago
Macro.php
2 years ago
MacroExtension.php
2 years ago
MacroScanner.php
2 years ago
Macro.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | /** |
| 5 | * This file is part of the Carbon package. |
| 6 | * |
| 7 | * (c) Brian Nesbitt <brian@nesbot.com> |
| 8 | * |
| 9 | * For the full copyright and license information, please view the LICENSE |
| 10 | * file that was distributed with this source code. |
| 11 | */ |
| 12 | namespace IAWPSCOPED\Carbon\PHPStan; |
| 13 | |
| 14 | use IAWPSCOPED\PHPStan\BetterReflection\Reflection\Adapter; |
| 15 | use IAWPSCOPED\PHPStan\Reflection\Php\BuiltinMethodReflection; |
| 16 | use ReflectionMethod; |
| 17 | $method = new ReflectionMethod(BuiltinMethodReflection::class, 'getReflection'); |
| 18 | require $method->hasReturnType() && $method->getReturnType()->getName() === Adapter\ReflectionMethod::class ? __DIR__ . '/../../../lazy/Carbon/PHPStan/AbstractMacroStatic.php' : __DIR__ . '/../../../lazy/Carbon/PHPStan/AbstractMacroBuiltin.php'; |
| 19 | $method = new ReflectionMethod(BuiltinMethodReflection::class, 'getFileName'); |
| 20 | require $method->hasReturnType() ? __DIR__ . '/../../../lazy/Carbon/PHPStan/MacroStrongType.php' : __DIR__ . '/../../../lazy/Carbon/PHPStan/MacroWeakType.php'; |
| 21 | /** @internal */ |
| 22 | final class Macro extends LazyMacro |
| 23 | { |
| 24 | } |
| 25 |