php-codesniffer/tests/DigiComp/Sniffs/Commenting/data/comments.php
Ferdinand Kuhl 7063c47d64
All checks were successful
ci/woodpecker/push/code-style Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
Fixing doc type annotation sniffs to correctly ignore attributes
2023-02-10 15:37:30 +01:00

39 lines
441 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;
}