Skip to content

Commit

Permalink
refactor: Make the Holiday class implement the Stringable interface
Browse files Browse the repository at this point in the history
The 'Holiday' class already includes the '__toString' method, so good to
have it implement the Stringable interface.

Signed-off-by: Sacha Telgenhof <[email protected]>
  • Loading branch information
stelgenhof committed Dec 23, 2024
1 parent 75125b9 commit f86d6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Yasumi/Holiday.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Class Holiday.
*/
class Holiday extends \DateTime implements \JsonSerializable
class Holiday extends \DateTime implements \JsonSerializable, \Stringable
{
/**
* Type definition for Official (i.e. National/Federal) holidays.
Expand Down

0 comments on commit f86d6ed

Please sign in to comment.