Skip to content

Commit 50a2a60

Browse files
committed
Added implements Stringable for classes with function __toString()
1 parent 6981d76 commit 50a2a60

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

agent/php/ElasticApm/Impl/Util/UrlParts.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@
2525

2626
use Elastic\Apm\Impl\Log\LoggableInterface;
2727
use Elastic\Apm\Impl\Log\LoggableTrait;
28+
use Stringable;
2829

2930
/**
3031
* Code in this file is part of implementation internals and thus it is not covered by the backward compatibility.
3132
*
3233
* @internal
3334
*/
34-
final class UrlParts implements LoggableInterface
35+
final class UrlParts implements LoggableInterface, Stringable
3536
{
3637
use LoggableTrait;
3738

agent/php/ElasticApm/Impl/Util/WildcardListMatcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323

2424
namespace Elastic\Apm\Impl\Util;
2525

26+
use Stringable;
27+
2628
/**
2729
* Code in this file is part of implementation internals and thus it is not covered by the backward compatibility.
2830
*
2931
* @internal
3032
*/
31-
final class WildcardListMatcher
33+
final class WildcardListMatcher implements Stringable
3234
{
3335
/** @var WildcardMatcher[] */
3436
private $matchers;

agent/php/ElasticApm/Impl/Util/WildcardMatcher.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323

2424
namespace Elastic\Apm\Impl\Util;
2525

26+
use Stringable;
27+
2628
/**
2729
* Code in this file is part of implementation internals and thus it is not covered by the backward compatibility.
2830
*
2931
* @internal
3032
*/
31-
final class WildcardMatcher
33+
final class WildcardMatcher implements Stringable
3234
{
3335
private const CASE_SENSITIVE_PREFIX = '(?-i)';
3436
private const WILDCARD = '*';

0 commit comments

Comments
 (0)