- Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.26, 8.4.1 - 8.4.13
- bool(true) bool(true)
<?php
interface ContainsStmts
{}
// BC break patch
class_alias(ContainsStmts::class, StmtsAwareInterface::class);
class SomeNode implements ContainsStmts {}
$obj = new SomeNode();
// old should keep working
var_dump($obj instanceof StmtsAwareInterface);
// new
var_dump($obj instanceof ContainsStmts);