Skip to content

Commit 1d3e315

Browse files
committed
ext/standard: change print_r return type from string|bool to string|false
1 parent 9306eb6 commit 1d3e315

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
@@ -566,6 +566,7 @@ PHP 8.4 UPGRADE NOTES
566566
. output_add_rewrite_var() now uses url_rewriter.hosts instead of
567567
session.trans_sid_hosts for selecting hosts that will be rewritten.
568568
. highlight_string() now has a return type of string|true instead of string|bool.
569+
. print_r() now has a return type of string|true instead of string|bool.
569570

570571
========================================
571572
6. New Functions

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,7 +2050,7 @@ function set_include_path(string $include_path): string|false {}
20502050
function get_include_path(): string|false {}
20512051

20522052
/** @refcount 1 */
2053-
function print_r(mixed $value, bool $return = false): string|bool {}
2053+
function print_r(mixed $value, bool $return = false): string|false {}
20542054

20552055
function connection_aborted(): int {}
20562056

0 commit comments

Comments
 (0)