PHPLIB-1243: Adapter to pipe ext-mongodb logs to a PSR-3 logger #912
Annotations
10 errors
src/PsrLogAdapter.php#L42
src/PsrLogAdapter.php:42:18: OverriddenInterfaceConstant: MongoDB\PsrLogAdapter::LEVEL_CRITICAL cannot override constant from MongoDB\Driver\Monitoring\LogSubscriber (see https://psalm.dev/306)
|
src/PsrLogAdapter.php#L42
src/PsrLogAdapter.php:42:18: InvalidClassConstantType: The type "2" for MongoDB\PsrLogAdapter::LEVEL_CRITICAL does not satisfy the type "1" inherited from MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_CRITICAL (see https://psalm.dev/309)
|
src/PsrLogAdapter.php#L43
src/PsrLogAdapter.php:43:18: OverriddenInterfaceConstant: MongoDB\PsrLogAdapter::LEVEL_ERROR cannot override constant from MongoDB\Driver\Monitoring\LogSubscriber (see https://psalm.dev/306)
|
src/PsrLogAdapter.php#L43
src/PsrLogAdapter.php:43:18: InvalidClassConstantType: The type "3" for MongoDB\PsrLogAdapter::LEVEL_ERROR does not satisfy the type "0" inherited from MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_ERROR (see https://psalm.dev/309)
|
src/PsrLogAdapter.php#L46
src/PsrLogAdapter.php:46:18: OverriddenInterfaceConstant: MongoDB\PsrLogAdapter::LEVEL_INFO cannot override constant from MongoDB\Driver\Monitoring\LogSubscriber (see https://psalm.dev/306)
|
src/PsrLogAdapter.php#L46
src/PsrLogAdapter.php:46:18: InvalidClassConstantType: The type "6" for MongoDB\PsrLogAdapter::LEVEL_INFO does not satisfy the type "4" inherited from MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_INFO (see https://psalm.dev/309)
|
src/PsrLogAdapter.php#L47
src/PsrLogAdapter.php:47:18: OverriddenInterfaceConstant: MongoDB\PsrLogAdapter::LEVEL_DEBUG cannot override constant from MongoDB\Driver\Monitoring\LogSubscriber (see https://psalm.dev/306)
|
src/PsrLogAdapter.php#L47
src/PsrLogAdapter.php:47:18: InvalidClassConstantType: The type "7" for MongoDB\PsrLogAdapter::LEVEL_DEBUG does not satisfy the type "5" inherited from MongoDB\Driver\Monitoring\LogSubscriber::LEVEL_DEBUG (see https://psalm.dev/309)
|
src/PsrLogAdapter.php#L132
src/PsrLogAdapter.php:132:21: InvalidArrayOffset: Cannot access value on variable MongoDB\PsrLogAdapter::SPEC_TO_PSR using a string offset, expecting int<0, 8> (see https://psalm.dev/115)
|
|
The logs for this run have expired and are no longer available.
Loading