Skip to content

Commit f049180

Browse files
committed
Process Rector rule: StringableForToStringRector
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent 446baee commit f049180

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Doctrine/Entity/Credentials.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Doctrine\ORM\Mapping as ORM;
99

1010
#[ORM\Entity(repositoryClass: CredentialsRepository::class)]
11-
class Credentials
11+
class Credentials implements \Stringable
1212
{
1313
#[ORM\Column]
1414
#[ORM\GeneratedValue]
@@ -40,7 +40,7 @@ public function getId(): ?int
4040

4141
public function __toString(): string
4242
{
43-
return $this->name;
43+
return (string) $this->name;
4444
}
4545

4646
public function getDescription(): ?string

src/Doctrine/Entity/Registry.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
#[ORM\Entity(repositoryClass: RegistryRepository::class)]
10-
class Registry
10+
class Registry implements \Stringable
1111
{
1212
#[ORM\Column]
1313
#[ORM\GeneratedValue]
@@ -37,7 +37,7 @@ class Registry
3737

3838
public function __toString(): string
3939
{
40-
return $this->name;
40+
return (string) $this->name;
4141
}
4242

4343
public function getId(): ?int

src/Doctrine/Entity/Version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#[ORM\Entity(repositoryClass: VersionRepository::class)]
1414
#[ORM\UniqueConstraint(name: 'pkg_ver_idx', columns: ['package_id', 'normalized_version'])]
15-
class Version extends TrackedEntity
15+
class Version extends TrackedEntity implements \Stringable
1616
{
1717
#[ORM\Id]
1818
#[ORM\Column]

0 commit comments

Comments
 (0)