Skip to content

Commit bb128e3

Browse files
committed
Use array<string> in exampe [skip ci]
1 parent fe6736c commit bb128e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use lang\Type;
2929
class HelloWorld {
3030
public const GREETING = 'Hello';
3131

32-
public static function main(array $args): void {
32+
public static function main(array<string> $args): void {
3333
$greet= ($to, $from) ==> self::GREETING.' '.$to.' from '.$from;
3434
$author= Type::forName(self::class)->getAnnotation('author');
3535

@@ -47,7 +47,7 @@ The following table gives an overview of the current implementation status. The
4747
| --------------------------------------------------------------------------- | -------- | -------- | -------- | -------- |
4848
| **Future** - these might or might not be part of PHP next | | | | |
4949
|[Union types](https://wiki.php.net/rfc/union_types) | ✔(1) | ✔(1) | ✔(1) | ✔(1) |
50-
|[XP Compact functions](https://github.com/xp-framework/rfc/issues/241) ||| ||
50+
|[XP Compact functions](https://github.com/xp-framework/rfc/issues/241) || |||
5151
|[Property types](https://wiki.php.net/rfc/property_type_hints) | ✔(1) | ✔(1) | ✔(1) | ✔(1) |
5252
| | | | | |
5353
| **[Hack](https://docs.hhvm.com/hack/)** | | | | |

0 commit comments

Comments
 (0)