Skip to content

Commit

Permalink
PHP 8.2 compatibility - deprecation notice fix (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevan-tosic authored Nov 29, 2023
1 parent 7d488cc commit 016ec62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Alcaeus/MongoDbAdapter/TypeConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private static function convertBSONObjectToLegacy(BSON\Type $value)
case $value instanceof Model\BSONDocument:
case $value instanceof Model\BSONArray:
return array_map(
['self', 'toLegacy'],
[self::class, 'toLegacy'],
$value->getArrayCopy()
);
default:
Expand Down

0 comments on commit 016ec62

Please sign in to comment.