Skip to content

Commit

Permalink
Added support for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tomburakvikshop authored and janpecha committed Jan 5, 2025
1 parent aa6fd41 commit a246e35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"classmap": ["tests/phpstan/DibiFluentDynamicReturnTypeExtension.php"]
},
"require": {
"php": "7.2 - 8.3",
"php": "7.2 - 8.4",
"dibi/dibi": "^4.0 || ^5.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/LeanMapper/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ protected function getCurrentReflection(): EntityReflection
*/
protected function getValueByPropertyWithRelationship(
$property,
Filtering $targetTableFiltering = null,
Filtering $relationshipTableFiltering = null
?Filtering $targetTableFiltering = null,
?Filtering $relationshipTableFiltering = null
) {
if (is_string($property)) {
$property = $this->getCurrentReflection()->getEntityProperty($property);
Expand Down
2 changes: 1 addition & 1 deletion src/LeanMapper/IEntityReflectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface IEntityReflectionProvider
/**
* @return Property[]
*/
function getProperties(EntityReflection $entityClass, IMapper $mapper = null): array;
function getProperties(EntityReflection $entityClass, ?IMapper $mapper = null): array;


/**
Expand Down

0 comments on commit a246e35

Please sign in to comment.