Skip to content

Commit a37021e

Browse files
authored
Merge pull request #118 from phpcr/fix-php-7-support
fix break for PHP 7.0
2 parents c473df4 + f4ab8b5 commit a37021e

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGELOG.md

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

4+
2.1.12
5+
------
6+
7+
* **2024-07-03**: Revert BC breaks with nullable parameters as those are not supported in PHP 7.0.
8+
49
2.1.11
510
------
611

712
* **2024-04-09**: Fixed `PHPCR\Query\QOM\QueryObjectModelFactoryInterface::literal` phpdoc return type.
13+
* **2024-04-08**: Code style fixes for PHP 8.3.
814

915
2.1.10
1016
------

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)