fix: check driver is Cake Driver before trying to access #122
ci.yml
on: pull_request
Coding Standard & Static Analysis
27s
Matrix: testsuite-linux
Annotations
8 errors
Coding Standard & Static Analysis:
src/Http/SentryClient.php#L65
Instanceof between Cake\Database\Driver and Cake\Database\Driver will always evaluate to true.
|
Coding Standard & Static Analysis:
src/Middleware/CakeSentryPerformanceMiddleware.php#L125
Instanceof between Cake\Database\Driver and Cake\Database\Driver will always evaluate to true.
|
Coding Standard & Static Analysis:
src/Middleware/CakeSentryQueryMiddleware.php#L63
Instanceof between Cake\Database\Driver and Cake\Database\Driver will always evaluate to true.
|
Coding Standard & Static Analysis
Process completed with exit code 1.
|
RedundantConditionGivenDocblockType:
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)
|
RedundantConditionGivenDocblockType:
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)
|
RedundantConditionGivenDocblockType:
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)
|
Coding Standard & Static Analysis
Process completed with exit code 2.
|