forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-7.0: Remove mentions of "type hint" and "typehint"
- Loading branch information
Showing
78 changed files
with
112 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Closure 059: Closure type hinting | ||
Closure 059: Closure type declaration | ||
--FILE-- | ||
<?php | ||
class A { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
055: typehints in namespaces | ||
055: types in namespaces | ||
--FILE-- | ||
<?php | ||
namespace test\ns1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Return type hinting for internal functions | ||
Return type for internal functions | ||
|
||
--SKIPIF-- | ||
<?php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Return type hinting for internal functions 2 | ||
Return type for internal functions 2 | ||
|
||
--SKIPIF-- | ||
<?php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Return type hinting and Reflection::export() | ||
Return type and Reflection::export() | ||
|
||
--SKIPIF-- | ||
<?php | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Zend/tests/callable_type_hint_002.phpt → ...tests/type_declarations/callable_002.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
callable type hint#002 - Reflection | ||
callable type#002 - Reflection | ||
--FILE-- | ||
<?php | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
Zend/tests/callable_type_hint_003.phpt → ...tests/type_declarations/callable_003.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
callable type hint#003 | ||
callable type#003 | ||
--FILE-- | ||
<?php | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...tests/closure_with_variadic_typehint.phpt → ...e_declarations/closure_with_variadic.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nexistent_class_hint_with_scalar_arg.phpt → ...nexistent_class_hint_with_scalar_arg.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ar_float_with_integer_default_strict.phpt → ...ar_float_with_integer_default_strict.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...alar_float_with_integer_default_weak.phpt → ...alar_float_with_integer_default_weak.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
Zend/tests/type_declarations/scalar_float_with_invalid_default.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--TEST-- | ||
Float type should not allow invalid types as default | ||
--FILE-- | ||
<?php | ||
|
||
function test(float $arg = true) | ||
{ | ||
var_dump($arg); | ||
} | ||
|
||
test(); | ||
|
||
?> | ||
--EXPECTF-- | ||
|
||
Fatal error: Default value for parameters with a float type can only be float, integer, or NULL in %s on line %d |
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_none.phpt → .../tests/type_declarations/scalar_none.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Scalar type hint missing parameters | ||
Scalar type missing parameters | ||
--FILE-- | ||
<?php | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_null.phpt → .../tests/type_declarations/scalar_null.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Scalar type hint nullability | ||
Scalar type nullability | ||
--FILE-- | ||
<?php | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../scalar_relative_typehint_disallowed.phpt → .../scalar_relative_typehint_disallowed.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--TEST-- | ||
Scalar type hint - disallow relative typehints | ||
Scalar type - disallow relative types | ||
--FILE-- | ||
<?php | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_reserved2.phpt → ...s/type_declarations/scalar_reserved2.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pehints/scalar_reserved2_class_alias.phpt → ...rations/scalar_reserved2_class_alias.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tests/typehints/scalar_reserved2_use.phpt → ...pe_declarations/scalar_reserved2_use.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_reserved3.phpt → ...s/type_declarations/scalar_reserved3.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pehints/scalar_reserved3_class_alias.phpt → ...rations/scalar_reserved3_class_alias.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tests/typehints/scalar_reserved3_use.phpt → ...pe_declarations/scalar_reserved3_use.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_reserved4.phpt → ...s/type_declarations/scalar_reserved4.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pehints/scalar_reserved4_class_alias.phpt → ...rations/scalar_reserved4_class_alias.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tests/typehints/scalar_reserved4_use.phpt → ...pe_declarations/scalar_reserved4_use.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_reserved6.phpt → ...s/type_declarations/scalar_reserved6.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pehints/scalar_reserved6_class_alias.phpt → ...rations/scalar_reserved6_class_alias.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...tests/typehints/scalar_reserved6_use.phpt → ...pe_declarations/scalar_reserved6_use.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Zend/tests/typehints/scalar_reserved7.phpt → ...s/type_declarations/scalar_reserved7.phpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.