Add more attributes to test file
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
Some checks failed
timw4mail/php-kilo/pipeline/head There was a failure building this commit
This commit is contained in:
parent
048f2c5f38
commit
c8be79d2d8
4
test.php
4
test.php
@ -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
Loading…
Reference in New Issue
Block a user