Deprecate all symbols in the Doctrine\Common\Proxy namespace (#1002)

This commit is contained in:
Nicolas Grekas
2023-08-10 09:28:45 +02:00
committed by GitHub
parent bd3bdeee06
commit c1e3356540
10 changed files with 14 additions and 13 deletions

View File

@@ -25,23 +25,15 @@ parameters:
-
message: '#^Result of method Doctrine\\Tests\\Common\\Proxy\\LazyLoadableObjectWithVoid::(adding|incrementing)AndReturningVoid\(\) \(void\) is used\.$#'
path: 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
-
message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#'
path: 'tests/Common/Proxy/ProxyLogicTest.php'
-
message: '#.*LazyLoadableObject.*#'
paths:
- 'tests/Common/Proxy/ProxyLogicTest.php'
- 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
path: 'tests/Common/Proxy/ProxyLogicTest.php'
-
message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#'
path: 'tests/Common/Proxy/ProxyLogicTest.php'
-
message: '#^Instantiated class Doctrine\\Tests\\Common\\ProxyProxy\\__CG__\\Doctrine\\Tests\\Common\\Proxy\\.* not found.$#'
path: 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
-
message: '#^Property Doctrine\\Tests\\Common\\Proxy\\ProxyLogicVoidReturnTypeTest::\$initializerCallbackMock \(callable\(\): mixed&PHPUnit\\Framework\\MockObject\\MockObject\) does not accept PHPUnit\\Framework\\MockObject\\MockObject&stdClass\.$#'
path: 'tests/Common/Proxy/ProxyLogicVoidReturnTypeTest.php'
-
message: '#^Method Doctrine\\Tests\\Common\\Proxy\\MagicIssetClassWithInteger::__isset\(\) should return bool but returns int\.$#'
path: 'tests/Common/Proxy/MagicIssetClassWithInteger.php'

View File

@@ -15,6 +15,8 @@ use function in_array;
/**
* Abstract factory for proxy objects.
*
* @deprecated The AbstractProxyFactory class is deprecated since doctrine/common 3.5.
*/
abstract class AbstractProxyFactory
{

View File

@@ -21,6 +21,7 @@ use const DIRECTORY_SEPARATOR;
* Special Autoloader for Proxy classes, which are not PSR-0 compliant.
*
* @internal
* @deprecated The Autoloader class is deprecated since doctrine/common 3.5.
*/
class Autoloader
{

View File

@@ -13,7 +13,7 @@ use function sprintf;
/**
* Proxy Invalid Argument Exception.
*
* @link www.doctrine-project.org
* @deprecated The InvalidArgumentException class is deprecated since doctrine/common 3.5.
*/
class InvalidArgumentException extends BaseInvalidArgumentException implements ProxyException
{

View File

@@ -9,7 +9,7 @@ use function sprintf;
/**
* Proxy Invalid Argument Exception.
*
* @link www.doctrine-project.org
* @deprecated The OutOfBoundsException class is deprecated since doctrine/common 3.5.
*/
class OutOfBoundsException extends BaseOutOfBoundsException implements ProxyException
{

View File

@@ -5,7 +5,7 @@ namespace Doctrine\Common\Proxy\Exception;
/**
* Base exception interface for proxy exceptions.
*
* @link www.doctrine-project.org
* @deprecated The ProxyException interface is deprecated since doctrine/common 3.5.
*/
interface ProxyException
{

View File

@@ -10,7 +10,7 @@ use function sprintf;
/**
* Proxy Unexpected Value Exception.
*
* @link www.doctrine-project.org
* @deprecated The UnexpectedValueException class is deprecated since doctrine/common 3.5.
*/
class UnexpectedValueException extends BaseUnexpectedValueException implements ProxyException
{

View File

@@ -8,6 +8,8 @@ use Doctrine\Persistence\Proxy as BaseProxy;
/**
* Interface for proxy classes.
*
* @deprecated The Proxy interface is deprecated since doctrine/common 3.5.
*
* @template T of object
* @template-extends BaseProxy<T>
*/

View File

@@ -6,6 +6,8 @@ use ReflectionProperty;
/**
* Definition structure how to create a proxy.
*
* @deprecated The ProxyDefinition class is deprecated since doctrine/common 3.5.
*/
class ProxyDefinition
{

View File

@@ -67,6 +67,8 @@ use const PREG_SPLIT_DELIM_CAPTURE;
/**
* This factory is used to generate proxy classes.
* It builds proxies from given parameters, a template and class metadata.
*
* @deprecated The ProxyGenerator class is deprecated since doctrine/common 3.5.
*/
class ProxyGenerator
{