Skip to content

Commit 51cdac6

Browse files
author
Alexander Miertsch
authored
Merge pull request #19 from netiul/feature/php8
Allow PHP 8 (and fixed a bug)
2 parents d741a9f + 7ad5feb commit 51cdac6

13 files changed

+43
-11
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^7.2",
19+
"php": "^7.2 || ^8.0",
2020
"ext-pdo": "*",
2121
"event-engine/php-persistence": "^0.8"
2222
},
@@ -27,7 +27,7 @@
2727
"phpstan/phpstan": "^0.12.48",
2828
"phpstan/phpstan-strict-rules": "^0.12.5",
2929
"phpunit/phpunit": "^8.5.8",
30-
"prooph/php-cs-fixer-config": "^0.3.1",
30+
"prooph/php-cs-fixer-config": "^0.4.0",
3131
"ramsey/uuid" : "^4.1.1",
3232
"roave/security-advisories": "dev-master",
3333
"php-coveralls/php-coveralls": "^2.2.0"

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '2'
22

33
services:
44
php:
5-
image: prooph/php:7.2-cli
5+
image: prooph/php:8.0-cli
66
volumes:
77
- .:/app
88
environment:

src/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of the event-engine/php-postgres-document-store.
4-
* (c) 2019 prooph software GmbH <contact@prooph.de>
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/PostgresDocumentStoreException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of the event-engine/php-postgres-document-store.
4-
* (c) 2019 prooph software GmbH <contact@prooph.de>
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Exception/RuntimeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of the event-engine/php-postgres-document-store.
4-
* (c) 2019 prooph software GmbH <contact@prooph.de>
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.

src/Index/RawSqlIndexCmd.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<?php
2+
/**
3+
* This file is part of the event-engine/php-postgres-document-store.
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
210
declare(strict_types=1);
311

412
namespace EventEngine\DocumentStore\Postgres\Index;

src/Metadata/Column.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<?php
2+
/**
3+
* This file is part of the event-engine/php-postgres-document-store.
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
210
declare(strict_types=1);
311

412
namespace EventEngine\DocumentStore\Postgres\Metadata;

src/Metadata/MetadataColumnIndex.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<?php
2+
/**
3+
* This file is part of the event-engine/php-postgres-document-store.
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
210
declare(strict_types=1);
311

412
namespace EventEngine\DocumentStore\Postgres\Metadata;

src/PostgresDocumentStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of the event-engine/php-postgres-document-store.
4-
* (c) 2019 prooph software GmbH <contact@prooph.de>
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
55
*
66
* For the full copyright and license information, please view the LICENSE
77
* file that was distributed with this source code.
@@ -827,7 +827,7 @@ private function filterToWhereClause(Filter $filter, $argsCount = 0): array
827827
if($innerFilter instanceof DocumentStore\Filter\AnyOfFilter || $innerFilter instanceof DocumentStore\Filter\AnyOfDocIdFilter) {
828828
if ($argsCount === 0) {
829829
return [
830-
substr_replace(' 1 != 1 ', ' 1 = 1 ', $innerFilterStr),
830+
str_replace(' 1 != 1 ', ' 1 = 1 ', $innerFilterStr),
831831
$args,
832832
$argsCount
833833
];

tests/MetadataPostgresDocumentStoreTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<?php
2+
/**
3+
* This file is part of the event-engine/php-postgres-document-store.
4+
* (c) 2019-2021 prooph software GmbH <contact@prooph.de>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
210
declare(strict_types=1);
311

412
namespace EventEngine\DocumentStoreTest\Postgres;

0 commit comments

Comments
 (0)