PHP - Inheritance and Polymorphism
Identify the error in this PHP code snippet:
class Animal {}
class Dog extends Animal {}
$dog = new Dog();
if ($dog instanceof 'Animal') {
echo 'It is an animal';
}