AbstractMacro.php
2 months ago
Macro.php
2 months ago
MacroExtension.php
2 months ago
MacroScanner.php
2 months ago
Macro.php
24 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 ProfilePressVendor\Carbon\PHPStan; |
| 13 | |
| 14 | use ProfilePressVendor\PHPStan\BetterReflection\Reflection\Adapter; |
| 15 | use ProfilePressVendor\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 | final class Macro extends LazyMacro |
| 22 | { |
| 23 | } |
| 24 |