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.
|
<?php
|
|
trait ExplicitTraitParameterRequirement
|
|
{
|
|
abstract public function accept(ExplicitTraitParameterRequirement $value): void;
|
|
}
|
|
|
|
class InvalidExplicitTraitParameter
|
|
{
|
|
use ExplicitTraitParameterRequirement;
|
|
|
|
public function accept(self $value): void {}
|
|
}
|
|
|
|
function main() {}
|
|
|