mirror of
https://github.com/predis/predis.git
synced 2026-11-25 21:25:32 +00:00
e33a45cfdf
Introduce the Predis\Observability namespace with the process-wide ObservabilityInstance, OTelConfig, MetricsConfig, MetricGroup and the MetricsCollector that later changes attach instruments to. open-telemetry/api is an optional (suggested) dependency because it requires PHP >= 8.1; nothing is recorded unless metrics are enabled. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
parameters:
|
|
level: 2
|
|
|
|
paths:
|
|
- src/
|
|
|
|
ignoreErrors:
|
|
# Tricky ones
|
|
- message: "#^Cannot cast Predis\\\\Response\\\\ResponseInterface to string\\.$#"
|
|
count: 1
|
|
path: src/Client.php
|
|
- message: "#^Cannot cast Predis\\\\Connection\\\\ConnectionInterface to string\\.$#"
|
|
count: 1
|
|
path: src/Client.php
|
|
# "new static" in non-final classes
|
|
- message: "#^Unsafe usage of new static\\(\\)\\.$#"
|
|
count: 3
|
|
path: src/Client.php
|
|
- message: "#^Unsafe usage of new static\\(\\)\\.$#"
|
|
count: 1
|
|
path: src/Connection/Parameters.php
|
|
# Using an interface as concrete type
|
|
- message: "#^Call to an undefined method Predis\\\\Command\\\\FactoryInterface\\:\\:define\\(\\)\\.$#"
|
|
count: 1
|
|
path: src/Configuration/Option/Commands.php
|
|
- message: "#^Call to an undefined method Predis\\\\Command\\\\FactoryInterface\\:\\:undefine\\(\\)\\.$#"
|
|
count: 1
|
|
path: src/Configuration/Option/Commands.php
|
|
- message: "#^Access to an undefined property Predis\\\\Connection\\\\ParametersInterface\\:\\:\\$weight\\.$#"
|
|
count: 1
|
|
path: src/Connection/Cluster/PredisCluster.php
|
|
- message: "#^Access to an undefined property Predis\\\\Connection\\\\ParametersInterface\\:\\:\\$role\\.$#"
|
|
count: 1
|
|
path: src/Connection/Replication/MasterSlaveReplication.php
|
|
- message: "#^Access to an undefined property Predis\\\\Connection\\\\ParametersInterface\\:\\:\\$role\\.$#"
|
|
count: 1
|
|
path: src/Connection/Replication/SentinelReplication.php
|
|
# Optional dependency (open-telemetry/api) that cannot be installed on PHP < 8.1
|
|
- message: "#OpenTelemetry\\\\API\\\\#"
|
|
path: src/Observability/*
|
|
# try/catch problems
|
|
- message: "#^Variable \\$connection might not be defined\\.$#"
|
|
count: 1
|
|
path: src/Connection/Replication/MasterSlaveReplication.php
|
|
- message: "#^Variable \\$response might not be defined\\.$#"
|
|
count: 1
|
|
path: src/Connection/Replication/MasterSlaveReplication.php
|