mirror of
https://github.com/doctrine/mongodb-odm.git
synced 2026-03-23 22:42:15 +01:00
Remove unusable Match classes
This commit is contained in:
@@ -4,3 +4,12 @@
|
||||
|
||||
* MongoDB ODM 2.6 requires PHP 8.1 or newer. If you're not running PHP 8.1 yet,
|
||||
it's recommended that you upgrade to PHP 8.1 before upgrading ODM.
|
||||
|
||||
## `Match` classes were removed
|
||||
|
||||
Minimal requirement of PHP 8.1 has rendered `Match` classes useless as one may
|
||||
not use them for backward compatibility purposes as `match` is a reserved keyword.
|
||||
|
||||
Following classes were removed:
|
||||
- `\Doctrine\ODM\MongoDB\Aggregation\Stage\GraphLookup\Match`
|
||||
- `\Doctrine\ODM\MongoDB\Aggregation\Stage\Match`
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\ODM\MongoDB\Aggregation\Stage\GraphLookup;
|
||||
|
||||
use Doctrine\ODM\MongoDB\Aggregation\Builder;
|
||||
use Doctrine\ODM\MongoDB\Aggregation\Stage\GraphLookup;
|
||||
|
||||
use function trigger_deprecation;
|
||||
|
||||
/**
|
||||
* @deprecated This class was deprecated in doctrine/mongodb-odm 2.2. Please use the MatchStage class instead
|
||||
*/
|
||||
class Match extends MatchStage
|
||||
{
|
||||
public function __construct(Builder $builder, GraphLookup $graphLookup)
|
||||
{
|
||||
trigger_deprecation(
|
||||
'doctrine/mongodb-odm',
|
||||
'2.2',
|
||||
'The "%s" class is deprecated. Please use "%s" instead.',
|
||||
self::class,
|
||||
MatchStage::class
|
||||
);
|
||||
|
||||
parent::__construct($builder, $graphLookup);
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Doctrine\ODM\MongoDB\Aggregation\Stage;
|
||||
|
||||
use Doctrine\ODM\MongoDB\Aggregation\Builder;
|
||||
|
||||
use function trigger_deprecation;
|
||||
|
||||
/**
|
||||
* @deprecated This class was deprecated in doctrine/mongodb-odm 2.2. Please use the MatchStage class instead
|
||||
*/
|
||||
class Match extends MatchStage
|
||||
{
|
||||
public function __construct(Builder $builder)
|
||||
{
|
||||
trigger_deprecation(
|
||||
'doctrine/mongodb-odm',
|
||||
'2.2',
|
||||
'The "%s" class is deprecated. Please use "%s" instead.',
|
||||
self::class,
|
||||
MatchStage::class
|
||||
);
|
||||
|
||||
parent::__construct($builder);
|
||||
}
|
||||
}
|
||||
@@ -21,8 +21,6 @@
|
||||
<exclude-pattern>tests/PersistentCollections*</exclude-pattern>
|
||||
<!-- Figure out what to do with "Scope keyword "static" must be followed by a single space; found newline" -->
|
||||
<exclude-pattern>tests/Doctrine/ODM/MongoDB/Tests/PersistentCollection/CollWithPHP80Types.php</exclude-pattern>
|
||||
<exclude-pattern>lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup/Match.php</exclude-pattern>
|
||||
<exclude-pattern>lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php</exclude-pattern>
|
||||
<!-- Figure out what to do with PHP 8.1 errors in coding standard -->
|
||||
<exclude-pattern>tests/Doctrine/ODM/MongoDB/Tests/PersistentCollection/CollWithPHP81Types.php</exclude-pattern>
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@ parameters:
|
||||
- lib
|
||||
- tests
|
||||
excludePaths:
|
||||
- lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup/Match.php
|
||||
- lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php
|
||||
- tests/Doctrine/ODM/MongoDB/Tests/Mapping/Driver/fixtures/User.php
|
||||
- tests/Hydrators/
|
||||
- tests/PersistentCollections/
|
||||
|
||||
@@ -19,10 +19,6 @@
|
||||
<include>
|
||||
<directory suffix=".php">./lib/Doctrine/ODM/MongoDB</directory>
|
||||
</include>
|
||||
<exclude>
|
||||
<file>./lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup/Match.php</file>
|
||||
<file>./lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php</file>
|
||||
</exclude>
|
||||
</coverage>
|
||||
<groups>
|
||||
<exclude>
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
<directory name="tests/Doctrine" />
|
||||
<directory name="tests/Documents" />
|
||||
<ignoreFiles>
|
||||
<file name="lib/Doctrine/ODM/MongoDB/Aggregation/Stage/GraphLookup/Match.php" />
|
||||
<file name="lib/Doctrine/ODM/MongoDB/Aggregation/Stage/Match.php" />
|
||||
<file name="tests/Doctrine/ODM/MongoDB/Tests/Mapping/Driver/fixtures/User.php" />
|
||||
<directory name="vendor" />
|
||||
</ignoreFiles>
|
||||
|
||||
Reference in New Issue
Block a user