Skip to content

Commit c43c2d0

Browse files
authored
__toString has been removed from the interface
1 parent caa16e4 commit c43c2d0

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/Document/Resource/NullResource.php

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ public function identifies(ResourceInterface $resource): bool
2323
return false;
2424
}
2525

26+
/**
27+
* @deprecated to be removed in 1.0
28+
*/
2629
public function __toString(): string
2730
{
2831
return 'null';

src/Document/Resource/ResourceIdentifier.php

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ function ($v) {
4444
);
4545
}
4646

47+
/**
48+
* @deprecated to be removed in 1.0
49+
*/
4750
public function __toString(): string
4851
{
4952
return sprintf("%s:%s", $this->type, $this->id ?: 'null');

src/Document/Resource/ResourceInterface.php

-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@
1414
interface ResourceInterface extends \JsonSerializable
1515
{
1616
public function identifies(ResourceInterface $resource): bool;
17-
18-
public function __toString(): string;
1917
}

0 commit comments

Comments
 (0)