Skip to content

Commit

Permalink
Use array<string> in exampe [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 22, 2017
1 parent fe6736c commit bb128e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use lang\Type;
class HelloWorld {
public const GREETING = 'Hello';

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

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

0 comments on commit bb128e3

Please sign in to comment.