[php-src] PR #21004: IntlBreakIterator::create methods cannot returns null
| From: | VincentLanglet | Date: | Thu, 22 Jan 2026 14:50:24 +0000 |
| Subject: | [php-src] PR #21004: IntlBreakIterator::create methods cannot returns null | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34633@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21004
Author: VincentLanglet
Hi,
I may be wrong but I feel like the stub is wrong about the fact those create method can returns
null.
All the example I found are not checking null and when checking lot of non-locale values
```
\IntlBreakIterator::createWordInstance('azertyuiop')
```
I still get an IntlBreakIterator instance.
So I wonder if the stub is not wrong.