Skip to content

Commit 3cc1e66

Browse files
Merge pull request #12 from javabudd/master
PHP8 Support
2 parents 8af0bcb + a1fa1f3 commit 3cc1e66

File tree

16 files changed

+152
-152
lines changed

16 files changed

+152
-152
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/coveralls-upload.json
44
/phpunit.xml
55
/vendor/
6+
.phpunit.result.cache

.travis.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
cache:
77
directories:
88
- $HOME/.composer/cache
9+
- vendor
910

1011
env:
1112
global:
@@ -17,41 +18,25 @@ env:
1718
matrix:
1819
fast_finish: true
1920
include:
20-
- php: 5.6
21+
- php: 7.3
2122
env:
2223
- DEPS=lowest
23-
- MONGO_DRIVER=mongo
24-
- php: 5.6
24+
- php: 7.3
2525
env:
2626
- DEPS=latest
27-
- MONGO_DRIVER=mongo
28-
- php: 7
29-
env:
30-
- DEPS=lowest
31-
- php: 7
32-
env:
33-
- DEPS=latest
34-
- php: 7.1
35-
env:
36-
- DEPS=lowest
37-
- php: 7.1
27+
- php: 7.4
3828
env:
3929
- DEPS=latest
4030
- CS_CHECK=true
4131
- TEST_COVERAGE=true
42-
- php: 7.2
32+
- php: 8.0
4333
env:
4434
- DEPS=lowest
45-
- php: 7.2
46-
env:
47-
- DEPS=latest
48-
# Disabled because some lowest dependencies are not compatible with PHP 7.3
49-
# - php: 7.3
50-
# env:
51-
# - DEPS=lowest
52-
- php: 7.3
35+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
36+
- php: 8.0
5337
env:
5438
- DEPS=latest
39+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
5540

5641
before_install:
5742
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi

composer.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
}
3030
},
3131
"require": {
32-
"php": "^5.6 || ^7.0",
33-
"doctrine/doctrine-module": "^1.2 || ^2.1.8",
32+
"php": "^7.3 || ~8.0.0",
33+
"doctrine/doctrine-module": "^2.1.8 || ^3.0.1 || ^4.1.0",
3434
"laminas-api-tools/api-tools-api-problem": "^1.2.2",
3535
"laminas-api-tools/api-tools-doctrine": "^2.1",
3636
"laminas-api-tools/api-tools-hal": "^1.4.2",
@@ -41,20 +41,23 @@
4141
"laminas/laminas-zendframework-bridge": "^1.0"
4242
},
4343
"require-dev": {
44-
"doctrine/doctrine-mongo-odm-module": "^0.11 || ^1.0",
45-
"doctrine/doctrine-orm-module": "^1.1 || ^2.1.3",
44+
"doctrine/dbal": "^2.12.1 || ^3.0.0",
45+
"doctrine/orm": "^2.7.5",
46+
"doctrine/doctrine-mongo-odm-module": "^1.0 || ^2.0.2 || ^3.0.2",
47+
"doctrine/doctrine-orm-module": "^2.1.3",
4648
"laminas-api-tools/api-tools-provider": "^1.2",
47-
"laminas/laminas-coding-standard": "~1.0.0",
49+
"laminas/laminas-coding-standard": "^2.1.4",
4850
"laminas/laminas-i18n": "^2.7.3",
4951
"laminas/laminas-log": "^2.9.1",
5052
"laminas/laminas-serializer": "^2.8",
5153
"laminas/laminas-test": "^2.6.1 || ^3.0.1",
52-
"phpunit/phpunit": "^5.7.27 || ^6.5.14 || ^7.5.3",
54+
"phpspec/prophecy-phpunit": "^2.0",
55+
"phpunit/phpunit": "^9.5.0",
5356
"symfony/yaml": "^2.3 || ^3.0 || ^4.0"
5457
},
5558
"suggest": {
56-
"doctrine/doctrine-mongo-odm-module": "^1.0, if you wish to use the Doctrine ODM",
57-
"doctrine/doctrine-orm-module": "^1.1 || ^2.1.3, if you wish to use the Doctrine ORM",
59+
"doctrine/doctrine-mongo-odm-module": "^1.0 || ^2.0.2 || ^3.0.2, if you wish to use the Doctrine ODM",
60+
"doctrine/doctrine-orm-module": "^2.1.3 || ^3.1.1, if you wish to use the Doctrine ORM",
5861
"ext/mongo": "Mongo extension, if using ODM"
5962
},
6063
"autoload": {

phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<ruleset name="Laminas Coding Standard">
3-
<rule ref="./vendor/laminas/laminas-coding-standard/ruleset.xml"/>
3+
<rule ref="./vendor/laminas/laminas-coding-standard/phpcs.xml.dist"/>
44

55
<!-- Paths to check -->
66
<file>config</file>

phpunit.xml.dist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="./vendor/autoload.php" colors="true">
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true">
3+
<coverage processUncoveredFiles="true">
4+
<include>
5+
<directory suffix=".php">./src</directory>
6+
</include>
7+
</coverage>
38
<testsuites>
49
<testsuite name="Laminas\ApiTools\Doctrine\QueryBuilder Module Tests">
510
<directory>./test</directory>
611
</testsuite>
712
</testsuites>
8-
<filter>
9-
<whitelist addUncoveredFilesFromWhitelist="true">
10-
<directory>./src</directory>
11-
</whitelist>
12-
</filter>
1313
</phpunit>

test/Filter/ODMFilterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private function countResult($filters, $entity = 'DbMongo\Document\Meta')
3030
return sizeof($result);
3131
}
3232

33-
protected function setUp()
33+
public function setUp(): void
3434
{
3535
$this->setApplicationConfig(
3636
include __DIR__ . '/application.config.php'

0 commit comments

Comments
 (0)