<slide>
<title>Typed Properties</title>
Typed Properties 2.0 — Bob Weinand and Nikita Popov
https://wiki.php.net/rfc/typed_properties_v2 — https://wiki.php.net/rfc/typed_properties_v2

<example>
&lt;?php
class 🥃whisky 
{
</example>
<div effect="fade-in">
<blurb>
All types with the exception of %void% and %callable% are supported:
</blurb>
<example>
    public    string     $name;
    private   int        $age;
    private   Distillery $distillery;
    private   ?Bottler   $bottler;
</example>
</div>
<div effect="fade-in">
<blurb>
    Types are also legal on static properties:
</blurb>
<example>
    /**
     * @var TastingNote[]
     */
    public static array $tastingNotes;
</example>
</div>
<div effect="fade-in">
<blurb>
    Typed properties may have default values:
</blurb>
<example>
    public int     $rating = 92;
}
</example>
</div>
</slide>
