From c6b251ca0c6f8f0d1c99fe7b4a4e5d9c0792cd5b Mon Sep 17 00:00:00 2001
From: Morris Jobke
Date: Tue, 18 Aug 2020 11:24:44 +0200
Subject: [PATCH] Add patches for stubs
* https://github.com/JetBrains/phpstorm-stubs/pull/893
* https://github.com/JetBrains/phpstorm-stubs/pull/894
* https://github.com/JetBrains/phpstorm-stubs/pull/895
* https://github.com/JetBrains/phpstorm-stubs/pull/896
Signed-off-by: Morris Jobke
---
build/stubs/intl.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/build/stubs/intl.php b/build/stubs/intl.php
index 329f848efcb..d8533d9079a 100644
--- a/build/stubs/intl.php
+++ b/build/stubs/intl.php
@@ -4606,7 +4606,7 @@ function grapheme_extract($haystack, $size, $extract_type = null, $start = 0, &$
*
* @return string|false The ACE encoded version of the domain name or FALSE on failure.
*/
-function idn_to_ascii($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, array &$idna_info) { }
+function idn_to_ascii($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, array &$idna_info = null) { }
/**
* (PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.2, PHP 7, PECL idn >= 0.1)
@@ -6340,7 +6340,7 @@ class IntlBreakIterator implements IteratorAggregate
* @param string $locale
* @return IntlBreakIterator
*/
- public static function createCharacterInstance($locale) { }
+ public static function createCharacterInstance($locale = null) { }
/**
* (PHP 5 >=5.5.0)
@@ -6440,7 +6440,7 @@ class IntlBreakIterator implements IteratorAggregate
* @link https://secure.php.net/manual/en/intlbreakiterator.getpartsiterator.php
* @param string $key_type [optional]
*/
- public function getPartsIterator($key_type) { }
+ public function getPartsIterator($key_type = IntlPartsIterator::KEY_SEQUENTIAL) { }
/**
* (PHP 5 >=5.5.0)
@@ -6471,7 +6471,7 @@ class IntlBreakIterator implements IteratorAggregate
* @param string $offset [optional]
* @return int
*/
- public function next($offset) { }
+ public function next($offset = null) { }
/**
* (PHP 5 >=5.5.0)
--
2.39.5