Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 15, 2019
1 parent b107511 commit 01a3a84
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ try {
}

// in case of error it throws Nette\Schema\ValidationException

```

Defining schema
Expand Down Expand Up @@ -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}');
```

Expand All @@ -239,7 +238,8 @@ Data mapping to objects
Schema can be generated from class:

```php
class Config {
class Config
{
/** @var string */
public $dsn;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 01a3a84

Please sign in to comment.