TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
727 B
41 lines
727 B
<?php
|
|
|
|
class OverridePropertyValidParent
|
|
{
|
|
public string $plain = 'parent';
|
|
public string $promoted = 'parent';
|
|
|
|
public string $hooked {
|
|
get => 'parent';
|
|
set {
|
|
}
|
|
}
|
|
}
|
|
|
|
class OverridePropertyValidChild extends OverridePropertyValidParent
|
|
{
|
|
#[Override]
|
|
public string $plain = 'child';
|
|
|
|
#[\Override]
|
|
public string $hooked {
|
|
get => 'child';
|
|
}
|
|
|
|
public function __construct(
|
|
#[\Override]
|
|
public string $promoted = 'child',
|
|
) {
|
|
}
|
|
}
|
|
|
|
trait OverridePropertyValidTrait
|
|
{
|
|
#[\Override]
|
|
public string $plain = 'parent';
|
|
}
|
|
|
|
class OverridePropertyValidTraitChild extends OverridePropertyValidParent
|
|
{
|
|
use OverridePropertyValidTrait;
|
|
}
|
|
|