Skip to content

Commit c5403e1

Browse files
committed
Typed constants in Intl extenstion
1 parent d04854b commit c5403e1

26 files changed

+1859
-2781
lines changed

ext/intl/breakiterator/breakiterator.stub.php

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,103 +6,84 @@
66
class IntlBreakIterator implements IteratorAggregate
77
{
88
/**
9-
* @var int
109
* @cvalue BreakIterator::DONE
1110
*/
12-
public const DONE = UNKNOWN;
11+
public const int DONE = UNKNOWN;
1312

1413
/**
15-
* @var int
1614
* @cvalue UBRK_WORD_NONE
1715
*/
18-
public const WORD_NONE = UNKNOWN;
16+
public const int WORD_NONE = UNKNOWN;
1917
/**
20-
* @var int
2118
* @cvalue UBRK_WORD_NONE_LIMIT
2219
*/
23-
public const WORD_NONE_LIMIT = UNKNOWN;
20+
public const int WORD_NONE_LIMIT = UNKNOWN;
2421
/**
25-
* @var int
2622
* @cvalue UBRK_WORD_NUMBER
2723
*/
28-
public const WORD_NUMBER = UNKNOWN;
24+
public const int WORD_NUMBER = UNKNOWN;
2925
/**
30-
* @var int
3126
* @cvalue UBRK_WORD_NUMBER_LIMIT
3227
*/
33-
public const WORD_NUMBER_LIMIT = UNKNOWN;
28+
public const int WORD_NUMBER_LIMIT = UNKNOWN;
3429
/**
35-
* @var int
3630
* @cvalue UBRK_WORD_LETTER
3731
*/
38-
public const WORD_LETTER = UNKNOWN;
32+
public const int WORD_LETTER = UNKNOWN;
3933
/**
40-
* @var int
4134
* @cvalue UBRK_WORD_LETTER_LIMIT
4235
*/
43-
public const WORD_LETTER_LIMIT = UNKNOWN;
36+
public const int WORD_LETTER_LIMIT = UNKNOWN;
4437
/**
45-
* @var int
4638
* @cvalue UBRK_WORD_KANA
4739
*/
48-
public const WORD_KANA = UNKNOWN;
40+
public const int WORD_KANA = UNKNOWN;
4941
/**
50-
* @var int
5142
* @cvalue UBRK_WORD_KANA_LIMIT
5243
*/
53-
public const WORD_KANA_LIMIT = UNKNOWN;
44+
public const int WORD_KANA_LIMIT = UNKNOWN;
5445
/**
55-
* @var int
5646
* @cvalue UBRK_WORD_IDEO
5747
*/
58-
public const WORD_IDEO = UNKNOWN;
48+
public const int WORD_IDEO = UNKNOWN;
5949
/**
60-
* @var int
6150
* @cvalue UBRK_WORD_IDEO_LIMIT
6251
*/
63-
public const WORD_IDEO_LIMIT = UNKNOWN;
52+
public const int WORD_IDEO_LIMIT = UNKNOWN;
6453

6554
/**
66-
* @var int
6755
* @cvalue UBRK_LINE_SOFT
6856
*/
69-
public const LINE_SOFT = UNKNOWN;
57+
public const int LINE_SOFT = UNKNOWN;
7058
/**
71-
* @var int
7259
* @cvalue UBRK_LINE_SOFT_LIMIT
7360
*/
74-
public const LINE_SOFT_LIMIT = UNKNOWN;
61+
public const int LINE_SOFT_LIMIT = UNKNOWN;
7562
/**
76-
* @var int
7763
* @cvalue UBRK_LINE_HARD
7864
*/
79-
public const LINE_HARD = UNKNOWN;
65+
public const int LINE_HARD = UNKNOWN;
8066
/**
81-
* @var int
8267
* @cvalue UBRK_LINE_HARD_LIMIT
8368
*/
84-
public const LINE_HARD_LIMIT = UNKNOWN;
69+
public const int LINE_HARD_LIMIT = UNKNOWN;
8570

8671
/**
87-
* @var int
8872
* @cvalue UBRK_SENTENCE_TERM
8973
*/
90-
public const SENTENCE_TERM = UNKNOWN;
74+
public const int SENTENCE_TERM = UNKNOWN;
9175
/**
92-
* @var int
9376
* @cvalue UBRK_SENTENCE_TERM_LIMIT
9477
*/
95-
public const SENTENCE_TERM_LIMIT = UNKNOWN;
78+
public const int SENTENCE_TERM_LIMIT = UNKNOWN;
9679
/**
97-
* @var int
9880
* @cvalue UBRK_SENTENCE_SEP
9981
*/
100-
public const SENTENCE_SEP = UNKNOWN;
82+
public const int SENTENCE_SEP = UNKNOWN;
10183
/**
102-
* @var int
10384
* @cvalue UBRK_SENTENCE_SEP_LIMIT
10485
*/
105-
public const SENTENCE_SEP_LIMIT = UNKNOWN;
86+
public const int SENTENCE_SEP_LIMIT = UNKNOWN;
10687

10788
/** @tentative-return-type */
10889
public static function createCharacterInstance(?string $locale = null): ?IntlBreakIterator {}

ext/intl/breakiterator/breakiterator_arginfo.h

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/intl/breakiterator/breakiterator_iterators.stub.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,17 @@
66
class IntlPartsIterator extends IntlIterator
77
{
88
/**
9-
* @var int
109
* @cvalue PARTS_ITERATOR_KEY_SEQUENTIAL
1110
*/
12-
public const KEY_SEQUENTIAL = UNKNOWN;
11+
public const int KEY_SEQUENTIAL = UNKNOWN;
1312
/**
14-
* @var int
1513
* @cvalue PARTS_ITERATOR_KEY_LEFT
1614
*/
17-
public const KEY_LEFT = UNKNOWN;
15+
public const int KEY_LEFT = UNKNOWN;
1816
/**
19-
* @var int
2017
* @cvalue PARTS_ITERATOR_KEY_RIGHT
2118
*/
22-
public const KEY_RIGHT = UNKNOWN;
19+
public const int KEY_RIGHT = UNKNOWN;
2320

2421
/** @tentative-return-type */
2522
public function getBreakIterator(): IntlBreakIterator {}

ext/intl/breakiterator/breakiterator_iterators_arginfo.h

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)