Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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