Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zakirullin authored Aug 25, 2020
1 parent d1d2286 commit 7a74a1e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ resource => int // UncastableValueException

Fairly simple, isn't it?

## Installation

```bash
$ composer require zakirullin/mess
```

## Dealing with mess

```php
Expand Down Expand Up @@ -80,12 +86,6 @@ $config['param']->findAsInt(); // 1
As you you might notice, type casting is performed while using `(find|get)As*` methods.
Having trouble grasping `get*()`/`find*()`? Check out brilliant [Ocramius's slides](https://ocramius.github.io/doctrine-best-practices/#/94).

## Installation

```bash
$ composer require zakirullin/mess
```

### Why one needs THAT naive type casting?

Let's imagine a library that is configured that way:
Expand Down Expand Up @@ -123,4 +123,4 @@ And that's the worst thing about it. It will continue to work, though, not in a
- Request `body`/`query`
- `API` response
- Config
- etc.
- etc.

0 comments on commit 7a74a1e

Please sign in to comment.