From 01a3a84c26f35d8e65470e92466663ef92cfd287 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 15 Sep 2019 11:02:31 +0200 Subject: [PATCH] typo --- readme.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index acb6f14..d929b33 100644 --- a/readme.md +++ b/readme.md @@ -43,7 +43,6 @@ try { } // in case of error it throws Nette\Schema\ValidationException - ``` Defining schema @@ -229,7 +228,7 @@ Regular expressions String can be restricted by regular expression using the `pattern()`: ```php -// just 9 numbers +// just 9 digits $schema = Expect::string()->pattern('\d{9}'); ``` @@ -239,7 +238,8 @@ Data mapping to objects Schema can be generated from class: ```php -class Config { +class Config +{ /** @var string */ public $dsn; @@ -272,7 +272,8 @@ You can even use PHP 7.4 notation: ```php -class Config { +class Config +{ public string $dsn; public ?string $user; public ?string $password;