Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110614 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47412 invoked from network); 17 Jun 2020 03:07:54 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jun 2020 03:07:54 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EB9F5180211 for ; Tue, 16 Jun 2020 18:53:24 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 16 Jun 2020 18:53:24 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id s18so935274ioe.2 for ; Tue, 16 Jun 2020 18:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=wgneUmntH6rQfLy/CS+IUeI/wTaYrN1aT+TyJP1BAa8=; b=Hv5hAT1zP5W2SlmHx9JZCqsMnRbYddiGxlK4/tcPlMTg86tQRCZUcbvBB39Yo6wqb8 ovSYK7HrbbTNXqDUv/9dd2Di3/IF0bUTiWp0FmrtkhQeSffUpqZVYlOfI9XVZjy0nnmP UJT8hzj3PGzRdLLz1eHn/rjiYSqQgqnTaAnk1XDkydbP2JgaVZYw9KPnsXPjbACy+Key pQDeeAxaV1vtdm2fbi94+PdRF4zjCRJsSYk8N9qKwWf2w8NEICUiNV0hgAfazRjSUAC5 /6Jo7kk4IBBRffRiEoRakYGJgE7uZisYJDZ+RSxIVTiKka22Bf6LkZZnrz6i3DVFEZi9 2ruw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wgneUmntH6rQfLy/CS+IUeI/wTaYrN1aT+TyJP1BAa8=; b=l34KaAwEaoGRlrDfQcE9PxJziWON9+tBL/wOBZAgz5FCEweyXJsIZioqeqVUJd4PbS 6/wSD6cSSDaV/NNNoMh1mGqk/izfcT/MfBds3Dsy8W/COP6+afWJrVi/WGkRu/YlB6eH jgD5FV8cLEbjEXIvPfiL5rUzL+IUtmtaQlIP7VHdUCPTxqhdGDZSUXPPvpXqUwFBxag5 LdbJ9QpTyzfwLNjrzORjRd2bzwzv9XS2xKrcUz3VYertJCgrOCDhfdqj78dkKTZrKKub Qk79c8xzkau45XxhejKkWjU6di7ETALLWyotZSHoL9Oa/Iq+TkUSG5ftSTIOsDH8KbKQ sXbw== X-Gm-Message-State: AOAM531l/ewP+dEe7g18oHTgv3wMUGLp1FG1Ywhtho7/9DsB7ppSRMRE 7GRkc8lt5yzSp9J9vPoK044tfoPKRoehfmuQlpRrLX4aeGY= X-Google-Smtp-Source: ABdhPJyWB/ku3fSrIa1mEF4JW/d37sTusMxJ1iNlUWDVeOHsWXBLF/T7UUeC+OSsJKq9EthS7EJmKWeFmKjUvlW6ug4= X-Received: by 2002:a05:6602:2584:: with SMTP id p4mr6315523ioo.30.1592358802821; Tue, 16 Jun 2020 18:53:22 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 17 Jun 2020 03:53:07 +0200 Message-ID: To: PHP Internals Content-Type: multipart/alternative; boundary="000000000000cc17f805a83decbb" Subject: [PHP-DEV] Change `__debugInfo` return type From: carusogabriel34@gmail.com (Gabriel Caruso) --000000000000cc17f805a83decbb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, internals. I'd like to discuss with you a minor change that I'd like to make to PHP 8.0: change the return type of `__debugInfo` from `?array` to `array`. The full context on how M=C3=A1t=C3=A9 found out that `__debugInfo` actuall= y returns an `?array` (which btw is not even documented: https://php.net/language.oop5.magic#object.debuginfo) can be found in this PR: https://github.com/php/php-src/pull/5496. Do you agree with this change, or should I proceed with a small RFC? -- Gabriel Caruso --000000000000cc17f805a83decbb--