compile('property_static_match.php'); } public function testStaticCannotBecomeInstance(): void { $this->exec( 'Cannot redeclare static `A::$x` as non static `B::$x`', 'property_static_mismatch.php', ); } public function testInstanceCannotBecomeStatic(): void { $this->exec( 'Cannot redeclare non static `A::$x` as static `B::$x`', 'property_nonstatic_mismatch.php', ); } }