X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fnikic%2Fphp-parser%2Ftest%2Fcode%2Fparser%2Fstmt%2Ffunction%2FnullableTypes.test;fp=vendor%2Fnikic%2Fphp-parser%2Ftest%2Fcode%2Fparser%2Fstmt%2Ffunction%2FnullableTypes.test;h=8bf2d31dab15f39808338da43eb30211cd165801;hp=d96df4faeb2dd5c64424e53a62f33ebeac1277c5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test b/vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test index d96df4fae..8bf2d31da 100644 --- a/vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test +++ b/vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test @@ -9,7 +9,9 @@ function test(?Foo $bar, ?string $foo) : ?Baz { array( 0: Stmt_Function( byRef: false - name: test + name: Identifier( + name: test + ) params: array( 0: Param( type: NullableType( @@ -21,16 +23,22 @@ array( ) byRef: false variadic: false - name: bar + var: Expr_Variable( + name: bar + ) default: null ) 1: Param( type: NullableType( - type: string + type: Identifier( + name: string + ) ) byRef: false variadic: false - name: foo + var: Expr_Variable( + name: foo + ) default: null ) )