Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

refac: let ValueObject extend from Stringable interface #14

Merged
b00gizm merged 1 commit into geekcell:main from Bl00D4NGEL:main
Mar 31, 2023

Conversation

@Bl00D4NGEL
Copy link
Contributor

@Bl00D4NGEL Bl00D4NGEL commented Mar 29, 2023

PHP 8.0 introduced the Stringable interface. This enables users of an object that implements it to write (string)$foo instead of $foo->__toString(). Additionally Stringable is currently supported by static code analysis tools like PHPStan which will help users of this library to write simpler/less code.

Copy link
Contributor Author

It looks like the unit tests are failing because the sonarcloud token is not set 🤷 Unit tests themself seem to run through just fine (as expected)

@b00gizm b00gizm self-assigned this Mar 31, 2023
@b00gizm b00gizm merged commit 48a3443 into geekcell:main Mar 31, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer

@b00gizm b00gizm b00gizm approved these changes

Reviewers whose approvals may not affect merge requirements

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /