php-codesniffer/tests/DigiComp/Sniffs/Commenting/data/comments.php
Ferdinand Kuhl f2fde71ef7
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
disable the Squiz\VariableCommentSniff "missing" code, to fix union types
2023-02-10 17:35:18 +01:00

46 lines
522 B
PHP

<?php
class A {
/**
* @var string
*/
protected $var;
}
class B extends A {
/**
* @inheritDoc
*/
protected $var;
}
class C extends A {
/**
* No inherit
*/
protected $var;
}
class D extends a {
protected $var;
}
#[\Attribute(\Attribute::TARGET_PROPERTY)]
final class OwnAttribute
{
}
class E extends A {
/**
* @var A
*/
#[\OwnAttribute]
protected $myVar;
}
class F extends A {
/**
* @var A|E
*/
protected A|E $myVar;
}