You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Command/SentryTestCommand.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ public function __construct(?HubInterface $hub = null)
25
25
parent::__construct();
26
26
27
27
if (null === $hub) {
28
-
@trigger_error(sprintf('Not passing an instance of the "%s" interface as argument of the constructor is deprecated since version 4.12 and will not work since version 5.0.', HubInterface::class), \E_USER_DEPRECATED);
28
+
@trigger_error(\sprintf('Not passing an instance of the "%s" interface as argument of the constructor is deprecated since version 4.12 and will not work since version 5.0.', HubInterface::class), \E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: src/Tracing/Cache/TraceableCacheAdapterForV2.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ public function get(string $key, callable $callback, float $beta = null, array &
44
44
{
45
45
return$this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
46
46
if (!$this->decoratedAdapterinstanceof CacheInterface) {
47
-
thrownew \BadMethodCallException(sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
47
+
thrownew \BadMethodCallException(\sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
Copy file name to clipboardExpand all lines: src/Tracing/Cache/TraceableCacheAdapterForV3.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ public function get(string $key, callable $callback, float $beta = null, array &
42
42
{
43
43
return$this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
44
44
if (!$this->decoratedAdapterinstanceof CacheInterface) {
45
-
thrownew \BadMethodCallException(sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
45
+
thrownew \BadMethodCallException(\sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
Copy file name to clipboardExpand all lines: src/Tracing/Cache/TraceableCacheAdapterTrait.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ public function delete(string $key): bool
70
70
{
71
71
return$this->traceFunction('cache.delete_item', function () use ($key): bool {
72
72
if (!$this->decoratedAdapterinstanceof CacheInterface) {
73
-
thrownew \BadMethodCallException(sprintf('The %s::delete() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
73
+
thrownew \BadMethodCallException(\sprintf('The %s::delete() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
Copy file name to clipboardExpand all lines: src/Tracing/Cache/TraceableTagAwareCacheAdapterForV2.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ public function get(string $key, callable $callback, float $beta = null, array &
45
45
{
46
46
return$this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
47
47
if (!$this->decoratedAdapterinstanceof CacheInterface) {
48
-
thrownew \BadMethodCallException(sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
48
+
thrownew \BadMethodCallException(\sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
Copy file name to clipboardExpand all lines: src/Tracing/Cache/TraceableTagAwareCacheAdapterForV3.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ public function get(string $key, callable $callback, float $beta = null, array &
43
43
{
44
44
return$this->traceFunction('cache.get_item', function () use ($key, $callback, $beta, &$metadata) {
45
45
if (!$this->decoratedAdapterinstanceof CacheInterface) {
46
-
thrownew \BadMethodCallException(sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
46
+
thrownew \BadMethodCallException(\sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "%s" interface.', self::class, CacheInterface::class));
Copy file name to clipboardExpand all lines: src/Tracing/Doctrine/DBAL/TracingDriverConnectionForV2V3.php
+3-3
Original file line number
Diff line number
Diff line change
@@ -176,7 +176,7 @@ public function rollBack(): bool
176
176
publicfunctiongetNativeConnection()
177
177
{
178
178
if (!method_exists($this->decoratedConnection, 'getNativeConnection')) {
179
-
thrownew \BadMethodCallException(sprintf('The connection "%s" does not support accessing the native connection.', \get_class($this->decoratedConnection)));
179
+
thrownew \BadMethodCallException(\sprintf('The connection "%s" does not support accessing the native connection.', \get_class($this->decoratedConnection)));
@trigger_error(sprintf('Not passing an instance of the "%s" interface as argument of the constructor is deprecated since version 4.2 and will not work since version 5.0.', TracingDriverConnectionFactoryInterface::class), \E_USER_DEPRECATED);
34
+
@trigger_error(\sprintf('Not passing an instance of the "%s" interface as argument of the constructor is deprecated since version 4.2 and will not work since version 5.0.', TracingDriverConnectionFactoryInterface::class), \E_USER_DEPRECATED);
thrownew \InvalidArgumentException(sprintf('The constructor requires either an instance of the "%s" interface or an instance of the "%s" interface.', HubInterface::class, TracingDriverConnectionFactoryInterface::class));
38
+
thrownew \InvalidArgumentException(\sprintf('The constructor requires either an instance of the "%s" interface or an instance of the "%s" interface.', HubInterface::class, TracingDriverConnectionFactoryInterface::class));
if (!$wrappedConnectioninstanceof ServerInfoAwareConnection) {
112
-
thrownew \BadMethodCallException(sprintf('The wrapped connection must be an instance of the "%s" interface.', ServerInfoAwareConnection::class));
112
+
thrownew \BadMethodCallException(\sprintf('The wrapped connection must be an instance of the "%s" interface.', ServerInfoAwareConnection::class));
113
113
}
114
114
115
115
return$wrappedConnection->getServerVersion();
@@ -123,7 +123,7 @@ public function getServerVersion(): string
123
123
publicfunctiongetNativeConnection()
124
124
{
125
125
if (!method_exists($this->decoratedConnection, 'getNativeConnection')) {
126
-
thrownew \BadMethodCallException(sprintf('The connection "%s" does not support accessing the native connection.', \get_class($this->decoratedConnection)));
126
+
thrownew \BadMethodCallException(\sprintf('The connection "%s" does not support accessing the native connection.', \get_class($this->decoratedConnection)));
Copy file name to clipboardExpand all lines: src/Tracing/HttpClient/AbstractTraceableHttpClient.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,7 @@ public function stream($responses, float $timeout = null): ResponseStreamInterfa
111
111
if ($responsesinstanceof AbstractTraceableResponse) {
112
112
$responses = [$responses];
113
113
} elseif (!is_iterable($responses)) {
114
-
thrownew \TypeError(sprintf('"%s()" expects parameter 1 to be an iterable of TraceableResponse objects, "%s" given.', __METHOD__, get_debug_type($responses)));
114
+
thrownew \TypeError(\sprintf('"%s()" expects parameter 1 to be an iterable of TraceableResponse objects, "%s" given.', __METHOD__, get_debug_type($responses)));
Copy file name to clipboardExpand all lines: src/Tracing/HttpClient/AbstractTraceableResponse.php
+1-1
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ public static function stream(HttpClientInterface $client, iterable $responses,
107
107
108
108
foreach ($responsesas$response) {
109
109
if (!$responseinstanceof self) {
110
-
thrownew \TypeError(sprintf('"%s::stream()" expects parameter 1 to be an iterable of TraceableResponse objects, "%s" given.', TraceableHttpClient::class, get_debug_type($response)));
110
+
thrownew \TypeError(\sprintf('"%s::stream()" expects parameter 1 to be an iterable of TraceableResponse objects, "%s" given.', TraceableHttpClient::class, get_debug_type($response)));
$this->expectExceptionMessage(sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "Symfony\\Contracts\\Cache\\CacheInterface" interface.', \get_class($adapter)));
162
+
$this->expectExceptionMessage(\sprintf('The %s::get() method is not supported because the decorated adapter does not implement the "Symfony\\Contracts\\Cache\\CacheInterface" interface.', \get_class($adapter)));
163
163
164
164
$adapter->get('foo', staticfunction () {});
165
165
}
@@ -197,7 +197,7 @@ public function testDeleteThrowsExceptionIfDecoratedAdapterDoesNotImplementTheCa
$this->expectExceptionMessage(sprintf('The %s::delete() method is not supported because the decorated adapter does not implement the "Symfony\\Contracts\\Cache\\CacheInterface" interface.', \get_class($adapter)));
200
+
$this->expectExceptionMessage(\sprintf('The %s::delete() method is not supported because the decorated adapter does not implement the "Symfony\\Contracts\\Cache\\CacheInterface" interface.', \get_class($adapter)));
0 commit comments