+1 and let's call `$object` `$post` and maybe even have an inline PhpDoc line in the function to make it even a bit more clear that after `supportsClass`, we know this is a Post object.

``` php
/** @var \Acme\DemoBundle\Entity\Post $post */
```