Skip to content

Commit 2cb17ac

Browse files
authored
Merge pull request #119 from phpcr/php83
drop php 5 and 7.0 that don't support the ? syntax for optional param…
2 parents a37021e + 64e6d10 commit 2cb17ac

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.github/workflows/test-application.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
include:
23-
- php-version: '5.6'
24-
- php-version: '7.0'
2523
- php-version: '7.1'
2624
- php-version: '7.2'
2725
- php-version: '7.3'

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
2.1.13
5+
------
6+
7+
* **2024-07-03**: Drop support for PHP 7.0 and 5.6 to allow `?` in parameters to avoid warning with PHP 8.3 and prepare for PHP 9.
8+
49
2.1.12
510
------
611

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^5.6 || ^7.0 || ^8.0"
26+
"php": "^7.1 || ^8.0"
2727
},
2828
"require-dev": {
2929
"phpunit/phpunit": "^5.7 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0"

src/PHPCR/Query/QOM/QueryObjectModelFactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ interface QueryObjectModelFactoryInterface extends QueryObjectModelConstantsInte
4848
*/
4949
public function createQuery(
5050
SourceInterface $source,
51-
ConstraintInterface $constraint = null,
51+
?ConstraintInterface $constraint = null,
5252
array $orderings = [],
5353
array $columns = []
5454
);

src/PHPCR/RepositoryFactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ interface RepositoryFactoryInterface
5555
*
5656
* @api
5757
*/
58-
public function getRepository(array $parameters = null);
58+
public function getRepository(?array $parameters = null);
5959

6060
/**
6161
* Get the list of configuration options that can be passed to

src/PHPCR/RepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ interface RepositoryInterface
567567
*
568568
* @api
569569
*/
570-
public function login(CredentialsInterface $credentials = null, $workspaceName = null);
570+
public function login(?CredentialsInterface $credentials = null, $workspaceName = null);
571571

572572
/**
573573
* All descriptor keys available for this implementation.

0 commit comments

Comments
 (0)