Skip to content

Commit dc9c15d

Browse files
committed
Add support for doctrine/common v3
1 parent 8068e0a commit dc9c15d

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
},
1616
"require-dev": {
1717
"doctrine/collections": "^1.6.8",
18-
"doctrine/common": "^2.13.3",
18+
"doctrine/common": "^2.13.3 || ^3.2.2",
1919
"phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
2020
},
2121
"conflict": {
2222
"doctrine/collections": "<1.6.8",
23-
"doctrine/common": "<2.13.3"
23+
"doctrine/common": "<2.13.3 || >=3,<3.2.2"
2424
},
2525
"autoload": {
2626
"psr-4": {

phpunit.xml.dist

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
4-
colors="true"
5-
bootstrap="vendor/autoload.php">
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
colors="true">
65

76
<testsuites>
87
<testsuite name="Test suite">
9-
<directory>./tests</directory>
8+
<directory>./tests/DeepCopyTest</directory>
109
</testsuite>
1110
</testsuites>
1211

src/DeepCopy/Matcher/Doctrine/DoctrineProxyMatcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace DeepCopy\Matcher\Doctrine;
44

55
use DeepCopy\Matcher\Matcher;
6-
use Doctrine\Common\Persistence\Proxy;
6+
use Doctrine\Persistence\Proxy;
77

88
/**
99
* @final

tests/DeepCopyTest/Matcher/Doctrine/DoctrineProxyMatcherTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use BadMethodCallException;
66
use DeepCopy\Matcher\Doctrine\DoctrineProxyMatcher;
7-
use Doctrine\Common\Persistence\Proxy;
7+
use Doctrine\Persistence\Proxy;
88
use PHPUnit\Framework\TestCase;
99
use stdClass;
1010

0 commit comments

Comments
 (0)