fix: check driver is Cake Driver before trying to access #29
Annotations
8 errors
Run phpstan:
src/Http/SentryClient.php#L65
Instanceof between Cake\Database\Driver and Cake\Database\Driver will always evaluate to true.
|
Run phpstan:
src/Middleware/CakeSentryPerformanceMiddleware.php#L125
Instanceof between Cake\Database\Driver and Cake\Database\Driver will always evaluate to true.
|
Run phpstan:
src/Middleware/CakeSentryQueryMiddleware.php#L63
Instanceof between Cake\Database\Driver and Cake\Database\Driver will always evaluate to true.
|
Run phpstan
Process completed with exit code 1.
|
Run psalm:
src/Http/SentryClient.php#L65
src/Http/SentryClient.php:65:17: RedundantConditionGivenDocblockType: Docblock-defined type Cake\Database\Driver for $driver is always Cake\Database\Driver (see https://psalm.dev/156)
|
Run psalm:
src/Middleware/CakeSentryPerformanceMiddleware.php#L125
src/Middleware/CakeSentryPerformanceMiddleware.php:125:17: RedundantConditionGivenDocblockType: Docblock-defined type Cake\Database\Driver for $driver is always Cake\Database\Driver (see https://psalm.dev/156)
|
Run psalm:
src/Middleware/CakeSentryQueryMiddleware.php#L63
src/Middleware/CakeSentryQueryMiddleware.php:63:17: RedundantConditionGivenDocblockType: Docblock-defined type Cake\Database\Driver for $driver is always Cake\Database\Driver (see https://psalm.dev/156)
|
Run psalm
Process completed with exit code 2.
|
Loading