Skip to content

Commit c6a951b

Browse files
authored
Merge pull request #172 from Slamdunk/build_fix
Fix build, Add support for `doctrine/common:v3`
2 parents 8263fc3 + b116b00 commit c6a951b

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

.github/workflows/ci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- pull_request
55
- push
66

7+
env:
8+
COMPOSER_ROOT_VERSION: 1.99
9+
710
jobs:
811
composer-json-lint:
912
name: "Lint composer.json"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
DeepCopy helps you create deep copies (clones) of your objects. It is designed to handle cycles in the association graph.
44

55
[![Total Downloads](https://poser.pugx.org/myclabs/deep-copy/downloads.svg)](https://packagist.org/packages/myclabs/deep-copy)
6+
[![Integrate](https://github.com/myclabs/DeepCopy/workflows/ci/badge.svg?branch=1.x)](https://github.com/myclabs/DeepCopy/actions)
67

78
## Table of Contents
89

composer.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414
"php": "^7.1 || ^8.0"
1515
},
1616
"require-dev": {
17-
"doctrine/collections": "^1.6",
18-
"doctrine/common": "^2.13",
19-
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5"
17+
"doctrine/collections": "^1.6.8",
18+
"doctrine/common": "^2.13.3 || ^3.2.2",
19+
"phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13"
20+
},
21+
"conflict": {
22+
"doctrine/collections": "<1.6.8",
23+
"doctrine/common": "<2.13.3 || >=3,<3.2.2"
2024
},
2125
"autoload": {
2226
"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)