Files
apimacro/vendor/nesbot/carbon/src/Carbon/PHPStan/Macro.php

35 lines
1.0 KiB
PHP
Raw Normal View History

2024-05-07 12:17:25 +02:00
<?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Carbon\PHPStan;
2024-05-17 12:24:19 +00:00
use PHPStan\BetterReflection\Reflection\Adapter;
2024-05-07 12:17:25 +02:00
use PHPStan\Reflection\Php\BuiltinMethodReflection;
use ReflectionMethod;
2024-05-17 12:24:19 +00:00
$method = new ReflectionMethod(BuiltinMethodReflection::class, 'getReflection');
require $method->hasReturnType() && $method->getReturnType()->getName() === Adapter\ReflectionMethod::class
? __DIR__.'/../../../lazy/Carbon/PHPStan/AbstractMacroStatic.php'
: __DIR__.'/../../../lazy/Carbon/PHPStan/AbstractMacroBuiltin.php';
2024-05-07 12:17:25 +02:00
$method = new ReflectionMethod(BuiltinMethodReflection::class, 'getFileName');
require $method->hasReturnType()
? __DIR__.'/../../../lazy/Carbon/PHPStan/MacroStrongType.php'
: __DIR__.'/../../../lazy/Carbon/PHPStan/MacroWeakType.php';
final class Macro extends LazyMacro
{
}