Add more attributes to test file
timw4mail/php-kilo/pipeline/head There was a failure building this commit Details

This commit is contained in:
Timothy Warren 2022-09-01 09:29:07 -04:00
parent 048f2c5f38
commit c8be79d2d8
2 changed files with 2377 additions and 2213 deletions

View File

@ -14,10 +14,12 @@ abstract class Foo implements Ifoo {
*/
abstract public function bar(int $a, float $b, array $c, callable $d, string $e): string;
#[ReturnTypeWillChange]
protected function doNothing(): void {}
}
#[Attribute]
#[AllowDynamicProperties]
class Test {
public function __construct(public string $foo, public string $bar) {}
}
@ -26,7 +28,7 @@ class Test {
* Docblock comment
*/
class FooBar extends Foo implements Ifoo {
public function bar(int $a, float $b, array $c, callable $d, string $e = 'default'): string
public function bar(int $a, float $b, array $c, callable $d, #[SensitiveParameter] string $e = 'default'): string
{
$cstr = print_r($c, TRUE);
$d();

File diff suppressed because it is too large Load Diff