Home
last modified time | relevance | path

Searched refs:nullable (Results 1 – 25 of 43) sorted by relevance

12

/PHP-8.0/Zend/tests/type_declarations/
H A Dscalar_none.phpt11 'int nullable' => function (int $i = NULL) { return $i; },
12 'float nullable' => function (float $f = NULL) { return $f; },
13 'string nullable' => function (string $s = NULL) { return $s; },
14 'bool nullable' => function (bool $b = NULL) { return $b; }
36 Testing int nullable:
38 Testing float nullable:
40 Testing string nullable:
42 Testing bool nullable:
H A Dscalar_null.phpt11 'int nullable' => function (int $i = NULL) { return $i; },
12 'float nullable' => function (float $f = NULL) { return $f; },
13 'string nullable' => function (string $s = NULL) { return $s; },
14 'bool nullable' => function (bool $b = NULL) { return $b; }
37 Testing int nullable:
39 Testing float nullable:
41 Testing string nullable:
43 Testing bool nullable:
H A Dscalar_constant_defaults.phpt78 echo "Testing nullable int with default null constant" . PHP_EOL;
81 echo "Testing nullable int with null null constant" . PHP_EOL;
102 Testing nullable int with default null constant
104 Testing nullable int with null null constant
H A Dnullable_null.phpt2 nullable class
H A Dnullable_void.phpt2 Void cannot be nullable
H A Dtyped_properties_087.phpt2 Ensure null-initialization of nullable typed static property taken by reference
H A Dtyped_properties_054.phpt2 Typed properties disallow callable (nullable variant)
H A Dtyped_properties_049.phpt10 Fatal error: Default value for property of type int may not be null. Use the nullable type ?int to …
/PHP-8.0/Zend/tests/return_types/
H A D032.phpt2 Nullable return type inheritance rules (nullable and non-nullable)
H A D031.phpt2 Nullable return type inheritance rules (non-nullable and nullable)
/PHP-8.0/Zend/tests/type_declarations/mixed/syntax/
H A Dnullable_mixed_return_error.phpt2 Test that the nullable mixed return type is not valid
12 Fatal error: Type mixed cannot be marked as nullable since mixed already includes null in %s on lin…
H A Dnullable_mixed_parameter_error.phpt2 Test that the nullable mixed parameter type is not valid
12 Fatal error: Type mixed cannot be marked as nullable since mixed already includes null in %s on lin…
H A Dnullable_mixed_property_error.phpt2 Test that the nullable mixed property type is not valid
13 Fatal error: Type mixed cannot be marked as nullable since mixed already includes null in %s on lin…
H A Dmixed_parameter_error2.phpt2 Test that the nullable mixed parameter type is not valid even though a null default value
12 Fatal error: Type mixed cannot be marked as nullable since mixed already includes null in %s on lin…
/PHP-8.0/ext/reflection/tests/
H A Dbug81208.phpt9 public function __construct(public bool $nullable = false) {}
13 #[MyAnnotation(name: "my_name", type: "integer", nullable: asdasdasd)]
H A DReflectionProperty_hasDefaultValue.phpt17 public ?int $nullable;
39 $property = new ReflectionProperty(TestClass::class, 'nullable');
H A DReflectionProperty_getDefaultValue.phpt19 public ?int $nullable;
44 $property = new ReflectionProperty(TestClass::class, 'nullable');
/PHP-8.0/Zend/tests/typehints/
H A Dfq_nullable.phpt2 Fully-qualified nullable parameter type
/PHP-8.0/Zend/tests/nullable_types/
H A Darray.phpt2 Explicitly nullable array type
H A Dfloat.phpt2 Explicitly nullable float type
H A Dint.phpt2 Explicitly nullable int type
H A Dstring.phpt2 Explicitly nullable string type
/PHP-8.0/ext/odbc/tests/
H A Dbug78470.phpt2 Bug #78470 (odbc_specialcolumns() no longer accepts $nullable)
/PHP-8.0/Zend/tests/type_declarations/mixed/inheritance/
H A Dmixed_parameter_inheritance_success5.phpt2 Test that a parameter of a nullable built-in type can be overridden by the mixed type
/PHP-8.0/Zend/tests/
H A Dctor_promotion_null_default.phpt2 Constructor promotion with null default, requires an explicitly nullable type

Completed in 18 milliseconds

12