Skip to content

fix: check driver is Cake Driver before trying to access #122

fix: check driver is Cake Driver before trying to access

fix: check driver is Cake Driver before trying to access #122

Triggered via pull request December 28, 2024 21:56
Status Failure
Total duration 34s
Artifacts

ci.yml

on: pull_request
Coding Standard & Static Analysis
27s
Coding Standard & Static Analysis
Matrix: testsuite-linux
Fit to window
Zoom out
Zoom in

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.