This commit is contained in:
Xes
2025-08-14 22:41:49 +02:00
parent 2de81ccc46
commit 8ce45119b6
39774 changed files with 4309466 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace Doctrine\Common\Reflection\Compatibility\Php7;
use ReflectionException;
trait ReflectionClass
{
/**
* {@inheritDoc}
*/
public function getConstants()
{
throw new ReflectionException('Method not implemented');
}
/**
* {@inheritDoc}
*/
public function newInstance($args)
{
throw new ReflectionException('Method not implemented');
}
}

View File

@@ -0,0 +1,16 @@
<?php
namespace Doctrine\Common\Reflection\Compatibility\Php7;
use ReflectionException;
trait ReflectionMethod
{
/**
* {@inheritDoc}
*/
public function invoke($object, $parameter = null)
{
throw new ReflectionException('Method not implemented');
}
}

View File

@@ -0,0 +1,27 @@
<?php
namespace Doctrine\Common\Reflection\Compatibility\Php8;
use ReflectionException;
use ReturnTypeWillChange;
trait ReflectionClass
{
/**
* {@inheritDoc}
*/
#[ReturnTypeWillChange]
public function getConstants(?int $filter = null)
{
throw new ReflectionException('Method not implemented');
}
/**
* {@inheritDoc}
*/
#[ReturnTypeWillChange]
public function newInstance(mixed ...$args)
{
throw new ReflectionException('Method not implemented');
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Doctrine\Common\Reflection\Compatibility\Php8;
use ReflectionException;
use ReturnTypeWillChange;
trait ReflectionMethod
{
/**
* {@inheritDoc}
*/
#[ReturnTypeWillChange]
public function invoke(?object $object, mixed ...$args)
{
throw new ReflectionException('Method not implemented');
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Doctrine\Common\Reflection\Compatibility;
use function class_alias;
use const PHP_VERSION_ID;
if (PHP_VERSION_ID >= 80000) {
class_alias('Doctrine\Common\Reflection\Compatibility\Php8\ReflectionClass', 'Doctrine\Common\Reflection\Compatibility\ReflectionClass');
} else {
class_alias('Doctrine\Common\Reflection\Compatibility\Php7\ReflectionClass', 'Doctrine\Common\Reflection\Compatibility\ReflectionClass');
}
if (false) {
trait ReflectionClass
{
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Doctrine\Common\Reflection\Compatibility;
use function class_alias;
use const PHP_VERSION_ID;
if (PHP_VERSION_ID >= 80000) {
class_alias('Doctrine\Common\Reflection\Compatibility\Php8\ReflectionMethod', 'Doctrine\Common\Reflection\Compatibility\ReflectionMethod');
} else {
class_alias('Doctrine\Common\Reflection\Compatibility\Php7\ReflectionMethod', 'Doctrine\Common\Reflection\Compatibility\ReflectionMethod');
}
if (false) {
trait ReflectionMethod
{
}
}