Skip to content

Commit b6ea837

Browse files
IntlBreakIterator::create methods cannot returns null
1 parent ba1f3d9 commit b6ea837

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/intl/breakiterator/breakiterator.stub.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,22 +105,22 @@ class IntlBreakIterator implements IteratorAggregate
105105
public const SENTENCE_SEP_LIMIT = UNKNOWN;
106106

107107
/** @tentative-return-type */
108-
public static function createCharacterInstance(?string $locale = null): ?IntlBreakIterator {}
108+
public static function createCharacterInstance(?string $locale = null): IntlBreakIterator {}
109109

110110
/** @tentative-return-type */
111111
public static function createCodePointInstance(): IntlCodePointBreakIterator {}
112112

113113
/** @tentative-return-type */
114-
public static function createLineInstance(?string $locale = null): ?IntlBreakIterator {}
114+
public static function createLineInstance(?string $locale = null): IntlBreakIterator {}
115115

116116
/** @tentative-return-type */
117-
public static function createSentenceInstance(?string $locale = null): ?IntlBreakIterator {}
117+
public static function createSentenceInstance(?string $locale = null): IntlBreakIterator {}
118118

119119
/** @tentative-return-type */
120-
public static function createTitleInstance(?string $locale = null): ?IntlBreakIterator {}
120+
public static function createTitleInstance(?string $locale = null): IntlBreakIterator {}
121121

122122
/** @tentative-return-type */
123-
public static function createWordInstance(?string $locale = null): ?IntlBreakIterator {}
123+
public static function createWordInstance(?string $locale = null): IntlBreakIterator {}
124124

125125
private function __construct() {}
126126

0 commit comments

Comments
 (0)