Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114037 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3798 invoked from network); 12 Apr 2021 13:14:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 12 Apr 2021 13:14:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EB6DB1804BD for ; Mon, 12 Apr 2021 06:15:17 -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-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 ; Mon, 12 Apr 2021 06:15:17 -0700 (PDT) Received: by mail-pg1-f182.google.com with SMTP id f29so9343635pgm.8 for ; Mon, 12 Apr 2021 06:15:17 -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=BtgyiDpgd79dCr6jNMuOH3yK7g+BgsZlym39757W110=; b=Sq2EEHZSU6/TQFCV8ewKmTm0Jt15Asip1cExNnWDvq/odeEeI8+PzL0pUfjys1Kt5B 3dwALx/rljhqLf0nhEKuiGi2IC4QbHd3rY2wN1KjgeuOyX89nYEDxvexXCKn8M6oGr1R k0gRbwfb1oTPERwJ7CpNJfQhtlp3TZP9+uzLbwX7MKsdQ0oIMZUl8z5+ybsPRvYrD1rH R9cVi+3hdVFUw8j/G8q7/UjuBjkO/WyLkEqxITWX1zRrD8TZloHhojDeXTYqkd2YPqO7 cG8b5kz3fWpSQr4L90zCWQgx5/Brzy7yg72qDct2QPqp6b74V1IKWP5muqgug2cR4Qp0 3X0w== 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=BtgyiDpgd79dCr6jNMuOH3yK7g+BgsZlym39757W110=; b=X9dyYJVKk+SH7w6XZyy+9mamBYbju+LRzb6jVAfMECUrO5G2C8bA9SAbH0UA8gpdup 0slPSqD4kk/KUTn13am1KCkGjIR6IqacWKmjPOitxjQ+Rjt+KZHPOS9wxhyUxaOzKvJp zqR9FrI1VRIBMlaqiWBiHk5ByzqJ5lDHdIpEOAI81US/XLo6XkR8kXVPTuxs+B5KzEaS fTQupVXUhkLWHvw95iMico6KKHJUuTfZR7RMn4F7yGIA34k8NCzp/iDiz6y7rleIkv9Z 41C//x23BSdH+HnROMRohpKI8WAOxxhIXBd7rJi/8Cfw2EU8LxSKxqqseHX6hX3rb9Ye mK4A== X-Gm-Message-State: AOAM532HjcWXSsYkptpYafY22/30+/I+JHgvmtFX5UnDuMrEVkThlH98 0yI1Qp/HCftzLEMjAXGFvSwJyQS64mFi8OVvJRlMr2Vxf6w= X-Google-Smtp-Source: ABdhPJwpjkqkC3EIXizUJ37knLRpoUD0O9wufeilXFHI5Vmtv03/H+iRkdr1873LR0nLChKR8EEV/3Phs5VUVAIt/T4= X-Received: by 2002:a63:5361:: with SMTP id t33mr26838573pgl.439.1618233313515; Mon, 12 Apr 2021 06:15:13 -0700 (PDT) MIME-Version: 1.0 References: <28be190c-21ea-b796-cec7-b8db21d14eca@gmail.com> In-Reply-To: Date: Mon, 12 Apr 2021 15:15:02 +0200 Message-ID: To: Nikita Popov Cc: Stanislav Malyshev , PHP internals Content-Type: multipart/alternative; boundary="000000000000d0dad905bfc64d28" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 8.1 From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000d0dad905bfc64d28 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Nikita and Stanislav, > > get_class(), get_parent_class() and get_called_class() without argumen= t > > > > I'm not sure why. I mean if we want to make them return the same as > > self::class etc. - up to the point of actually compiling them as such - > > no problem, but I don't see why they need to be deprecated. And I > > vaguely remember seeing get_class() at least a bunch of times in old > > code, when ::class didn't even exist. I don't see a good reason why tha= t > > code should be broken. > > > > I agree with you on this one. From my perspective, there should be some > technical motivation for deprecations, and this one seems to be more abou= t > coding style -- it removes an old way to write something, which has been > subsumed by a different construct in the meantime. I think M=C3=A1t=C3=A9= suggested > this one, maybe he can provide additional reasoning. > The technical motivation why I suggested this idea is because the optional parameter of get_class() and get_parent_class() doesn't have a correct default value since https://wiki.php.net/rfc/get_class_disallow_null_parameter. So I don't really mind the coding style perspective, I'd only like to ensure that default value handling is right without reverting the relevant RFC. If you think it's too much of a BC break for a small gain, then I'm ok to remove this item from the list. Regards: M=C3=A1t=C3=A9 --000000000000d0dad905bfc64d28--