Skip to content

Commit 4586d50

Browse files
committed
Improve PHP 8.2 compatibility - fix Use of "self" in callables is deprecated error
Fixes: > Deprecated: Use of "self" in callables is deprecated in /../vendor/alcaeus/mongo-php-adapter/lib/Alcaeus/MongoDbAdapter/TypeConverter.php on line 180
1 parent a339ef7 commit 4586d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Alcaeus/MongoDbAdapter/TypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private static function convertBSONObjectToLegacy(BSON\Type $value)
178178
case $value instanceof Model\BSONDocument:
179179
case $value instanceof Model\BSONArray:
180180
return array_map(
181-
['self', 'toLegacy'],
181+
[__CLASS__, 'toLegacy'],
182182
$value->getArrayCopy()
183183
);
184184
default:

0 commit comments

Comments
 (0)