Skip to content

Commit 5ae76d1

Browse files
Add polyfill for PHP8's Stringable
1 parent ee5c293 commit 5ae76d1

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Symfony Polyfill / Php80
22
========================
33

4-
This component provides functions added to PHP 8.0 core:
4+
This component provides features added to PHP 8.0 core:
55

6+
- `Stringable` interface
67
- [`fdiv`](https://php.net/fdiv)
78
- `ValueError` class
89
- `FILTER_VALIDATE_BOOL` constant

Resources/stubs/Stringable.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
interface Stringable
4+
{
5+
/**
6+
* @return string
7+
*/
8+
public function __toString();
9+
}

0 commit comments

Comments
 (0)