Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114099 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82498 invoked from network); 22 Apr 2021 10:12:50 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 22 Apr 2021 10:12:50 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 105811804F3 for ; Thu, 22 Apr 2021 03:15:51 -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_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 ; Thu, 22 Apr 2021 03:15:50 -0700 (PDT) Received: by mail-pf1-f179.google.com with SMTP id q2so1354476pfk.9 for ; Thu, 22 Apr 2021 03:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3EO85ob/UcKfNzyfj1uJ+VmYL50mfkTepkAbEXJqPgc=; b=kiqxgb7Ugfd7Op9gKpYrCZwNwoLQ5Olpxct3e1eotTkz5DA+/ZPo4MJNzOU3YROJ/b JXzjjZD9er6Qbg9HuD7YpjIVlBcWS97C7VcQXtVBCSP9QlSHLowPi0cJpU0qXJkmh0LD KTxqtzV4ETumiSynK1XZybq5hG94OjtTembylPykaYNI0C69rbMu5rGI4tMJKYZl5m2i 0X5TV1k4OEiHKTdXwqd4mXX8rq44zOQawFGfNZk+IN3tt5e1xvX5xs5Yi5LLkuPEEBaE FcQ2MPkaBWSpbmRKLEm/LyjdPWzdtb7vBpn2dUuMujpjQWXpgfPTEjEQpAsuV+hEZNLO tJ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3EO85ob/UcKfNzyfj1uJ+VmYL50mfkTepkAbEXJqPgc=; b=HHZmlX7ZrC0i7rGYvI95QPKKYO1ZLJXvmIGbhMQB33bvb9tTrfRgp14GwefipTrmy4 X5uxLEB/PlqQloEFaAGyD8v0EOMX+vqmyqQUL9dzO6TvmDEH9fj+IZ+cxYIa8HaPUk9O iDlhKyVH+ElkiNE7Di3u5cafveMphTkL3NdW/zH8XE2cOV+WV8Gxh2VVBERgG1V7W8nX OMmq28WBBSwZw3CXicoSHpp2xSfho8kgdvVcbeHkrP5+TmCQSGTO/CxE+VAmLT+DiIRO oAILgujNEZXIpfNgxkIZshLf4xHDOLqNkxeJ1VCtVkTi0wF+czmgfZfSX9tq1mm0lcgn o0UQ== X-Gm-Message-State: AOAM531xpvHWTh2yeojeyk30slZBMgnfnVgLh+KTjivGm6IF2zpZqH6n 1j7f9bViK6Kpx/p5oRCNcEOeAB/9dQgP+JdJg8L1IptruEvQupe5 X-Google-Smtp-Source: ABdhPJyBk+7NL0J0lJAxJ5PAFVWwANf0ezBflGoLvUjz49C3FwJiiALxxKZEnyCMUfvWH/1zUWI4H5/SIhYlFmsb3EY= X-Received: by 2002:a65:4481:: with SMTP id l1mr2740370pgq.42.1619086547844; Thu, 22 Apr 2021 03:15:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 22 Apr 2021 12:15:37 +0200 Message-ID: To: Marco Pivetta Cc: Nikita Popov , PHP Internals List Content-Type: multipart/alternative; boundary="0000000000008b7fed05c08cf6e7" Subject: Re: [PHP-DEV] [RFC] [Vote] Adding return types to internal methods From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000008b7fed05c08cf6e7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Overall, I see the change of reported `ReflectionMethod#getReturnType()` > as non-problematic, and tooling around reflection would continue working = as > expected, while adding new API requires: > I do think it would be problematic, and a new API is a must (either the one Nikita asked about or the current one). Let's consider a reflection-based static analyser: in PHP 8.1, it would report the incompatible user-land return types as a very serious issue all of a sudden, while in fact it's not the case yet. (now I see that Nikita answered the same) M=C3=A1t=C3=A9 > --0000000000008b7fed05c08cf6e7--