Skip to content

Commit 9306eb6

Browse files
committed
ext/standard: change highlight_string() return type from string|bool to string|false
1 parent 85b7181 commit 9306eb6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ PHP 8.4 UPGRADE NOTES
565565
one digit.
566566
. output_add_rewrite_var() now uses url_rewriter.hosts instead of
567567
session.trans_sid_hosts for selecting hosts that will be rewritten.
568+
. highlight_string() now has a return type of string|true instead of string|bool.
568569

569570
========================================
570571
6. New Functions

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ function show_source(string $filename, bool $return = false): string|bool {}
20242024
function php_strip_whitespace(string $filename): string {}
20252025

20262026
/** @refcount 1 */
2027-
function highlight_string(string $string, bool $return = false): string|bool {}
2027+
function highlight_string(string $string, bool $return = false): string|true {}
20282028

20292029
function ini_get(string $option): string|false {}
20302030

0 commit comments

Comments
 (0)