Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zakirullin/typed-accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
zakirullin committed Aug 1, 2020
2 parents 91a94e5 + 8194a81 commit 3f3069e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Consider an example:
```php
$userId = $queryParams['userId'] ?? null;
if ($userId === null) {

throw new BadRequestException();
}
$userId = (int)$userId;
Expand Down Expand Up @@ -47,7 +46,7 @@ $config['param']->findInt(); // null
$config['param']->findAsInt(); // 1
```

As you you might notice, no type casting is performed when using `get*()` methods.
As you you might notice, no type casting is performed while using `get*()` methods.
Having trouble grasping `get*()`/`find*()`? Check out brilliant [Ocramius's slides](https://ocramius.github.io/doctrine-best-practices/#/94).

## Type casting now is rather predictable
Expand Down

0 comments on commit 3f3069e

Please sign in to comment.