PHP Classes

File: vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test

Recommend this page to a friend!
  Packages of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test   Download  
File: vendor/nikic/php-parser/test/code/parser/stmt/function/nullableTypes.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 8 months ago
Size: 989 bytes
 

Contents

Class file image Download
Nullable types ----- <?php function test(?Foo $bar, ?string $foo) : ?Baz { } ----- !!php7 array( 0: Stmt_Function( byRef: false name: test params: array( 0: Param( type: NullableType( type: Name( parts: array( 0: Foo ) ) ) byRef: false variadic: false name: bar default: null ) 1: Param( type: NullableType( type: string ) byRef: false variadic: false name: foo default: null ) ) returnType: NullableType( type: Name( parts: array( 0: Baz ) ) ) stmts: array( ) ) )