summaryrefslogtreecommitdiff
path: root/ext/intl/tests/locale
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-04-06 11:02:13 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-04-08 18:37:51 +0200
commit3709e74b5e495e210ada8039ed81fafa9cbadcdb (patch)
treeb7347572b1e22a2a27a45260b4f4773bf916b158 /ext/intl/tests/locale
parentb0d8f012f95ba1f2d8dba238c93baf3afb73b78e (diff)
downloadphp-git-3709e74b5e495e210ada8039ed81fafa9cbadcdb.tar.gz
Store default parameter values of internal functions in arg info
Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
Diffstat (limited to 'ext/intl/tests/locale')
-rw-r--r--ext/intl/tests/locale/bug74993.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/intl/tests/locale/bug74993.phpt b/ext/intl/tests/locale/bug74993.phpt
index d8d8b9fada..49b5bd4589 100644
--- a/ext/intl/tests/locale/bug74993.phpt
+++ b/ext/intl/tests/locale/bug74993.phpt
@@ -23,7 +23,7 @@ Function [ <internal:intl> function locale_get_display_language ] {
- Parameters [2] {
Parameter #0 [ <required> string $locale ]
- Parameter #1 [ <optional> ?string $in_locale ]
+ Parameter #1 [ <optional> ?string $in_locale = null ]
}
- Return [ string|false ]
}
@@ -31,7 +31,7 @@ Function [ <internal:intl> function locale_get_display_name ] {
- Parameters [2] {
Parameter #0 [ <required> string $locale ]
- Parameter #1 [ <optional> ?string $in_locale ]
+ Parameter #1 [ <optional> ?string $in_locale = null ]
}
- Return [ string|false ]
}
@@ -39,7 +39,7 @@ Function [ <internal:intl> function locale_get_display_region ] {
- Parameters [2] {
Parameter #0 [ <required> string $locale ]
- Parameter #1 [ <optional> ?string $in_locale ]
+ Parameter #1 [ <optional> ?string $in_locale = null ]
}
- Return [ string|false ]
}
@@ -47,7 +47,7 @@ Function [ <internal:intl> function locale_get_display_script ] {
- Parameters [2] {
Parameter #0 [ <required> string $locale ]
- Parameter #1 [ <optional> ?string $in_locale ]
+ Parameter #1 [ <optional> ?string $in_locale = null ]
}
- Return [ string|false ]
}
@@ -55,7 +55,7 @@ Function [ <internal:intl> function locale_get_display_variant ] {
- Parameters [2] {
Parameter #0 [ <required> string $locale ]
- Parameter #1 [ <optional> ?string $in_locale ]
+ Parameter #1 [ <optional> ?string $in_locale = null ]
}
- Return [ string|false ]
}
@@ -64,7 +64,7 @@ Function [ <internal:intl> function locale_filter_matches ] {
- Parameters [3] {
Parameter #0 [ <required> string $langtag ]
Parameter #1 [ <required> string $locale ]
- Parameter #2 [ <optional> bool $canonicalize ]
+ Parameter #2 [ <optional> bool $canonicalize = false ]
}
- Return [ ?bool ]
}
@@ -73,8 +73,8 @@ Function [ <internal:intl> function locale_lookup ] {
- Parameters [4] {
Parameter #0 [ <required> array $langtag ]
Parameter #1 [ <required> string $locale ]
- Parameter #2 [ <optional> bool $canonicalize ]
- Parameter #3 [ <optional> ?string $def ]
+ Parameter #2 [ <optional> bool $canonicalize = false ]
+ Parameter #3 [ <optional> ?string $def = null ]
}
- Return [ ?string ]
}