Skip to content

Commit 51f5cb6

Browse files
committed
Merge branch 'fix_cte_stub'
2 parents 3310463 + 8537cff commit 51f5cb6

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

ext/gd/gd.stub.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ function imagesetbrush(GdImage $image, GdImage $brush): bool {}
541541
/** @refcount 1 */
542542
function imagecreate(int $width, int $height): GdImage|false {}
543543

544+
/** @compile-time-eval */
544545
function imagetypes(): int {}
545546

546547
/** @refcount 1 */

ext/gd/gd_arginfo.h

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

ext/standard/basic_functions.stub.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,7 +1846,10 @@ function array_filter(array $array, ?callable $callback = null, int $mode = 0):
18461846

18471847
function array_map(?callable $callback, array $array, array ...$arrays): array {}
18481848

1849-
/** @param string|int $key */
1849+
/**
1850+
* @param string|int $key
1851+
* @compile-time-eval
1852+
*/
18501853
function array_key_exists($key, array $array): bool {}
18511854

18521855
/**
@@ -1859,6 +1862,7 @@ function array_chunk(array $array, int $length, bool $preserve_keys = false): ar
18591862

18601863
function array_combine(array $keys, array $values): array {}
18611864

1865+
/** @compile-time-eval */
18621866
function array_is_list(array $array): bool {}
18631867

18641868
/* base64.c */
@@ -2311,10 +2315,16 @@ function dirname(string $path, int $levels = 1): string {}
23112315
*/
23122316
function pathinfo(string $path, int $flags = PATHINFO_ALL): array|string {}
23132317

2314-
/** @refcount 1 */
2318+
/**
2319+
* @compile-time-eval
2320+
* @refcount 1
2321+
*/
23152322
function stristr(string $haystack, string $needle, bool $before_needle = false): string|false {}
23162323

2317-
/** @refcount 1 */
2324+
/**
2325+
* @compile-time-eval
2326+
* @refcount 1
2327+
*/
23182328
function strstr(string $haystack, string $needle, bool $before_needle = false): string|false {}
23192329

23202330
/** @alias strstr */

ext/standard/basic_functions_arginfo.h

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

0 commit comments

Comments
 (0)