Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113535 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 37976 invoked from network); 15 Mar 2021 13:23:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2021 13:23:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 775921804DF for ; Mon, 15 Mar 2021 06:16:31 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-Virus: No X-Envelope-From: Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (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, 15 Mar 2021 06:16:30 -0700 (PDT) Received: by mail-ua1-f51.google.com with SMTP id 97so4177777uav.7 for ; Mon, 15 Mar 2021 06:16:30 -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=vhBxcddv2xNr4CusJYOxrNIm9Wpoztomj8yAsdUNHxE=; b=lM+qrcmeb2R5SGr9uFZOn33VI5MIbOwI9AyASAbHwBKnvq6rdK0M8aOcyq3yo9qbkk zFd5FSBZ21JBoQVCQbVoYxvCEGiHx1AxauF3yOpwGqNfkZchVuTfpIJRtL6xYjxGKhnv ZLWHpvezXWi/Ym/QTXWDb4tPYWw/icRcF7mC+CZ0pLuGwYTrzULSFNDvx0FIft2q+ql3 UnVcRHWbODJebo3Wk1JU6F0+eWXsAKtwYTkpxVjakAJe0CWlpKBnz7J2Sk4YjQYYVA3n ZAz19GNGCvdUBIUQkW7zo7BsYQbYqIw8Xrq0mongq2GdmYLibik9A0iEvI4zLXvFTyHJ xUSg== 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=vhBxcddv2xNr4CusJYOxrNIm9Wpoztomj8yAsdUNHxE=; b=gLvrEYJOZwzEdQ8WITX8am6UUsSGOszkqxa1MapPQNUh9G/y6IbyRVcKLgRLowtCl/ i8VPke3pTiY22ci5Ax8eQf1P5TZttjeyxkJXoAE2cDP9YX804lVlu5ugObI/+IONKzpw szXMVK0nDpcCAEhWnj2Fu3unNt4gUt5TrJjeoJ4zEK16RLPCoK0Wc+ryxy17nEV40Tm7 f11mPIZQeVgwfyfxpPp8/qVuGnrv01cqCuc1tFlAYjX3QcR/QcpsdGWLJbpQVfVpBStH qLOksCrfgyudOzgBwrJ9wR2dwpMrKyhD8GQ3aCQN/PAT86XA3Mjo28rAVX/F1CdyZi0R ZG1w== X-Gm-Message-State: AOAM530O8343AqrUZKjWOmU9iv0c/6RrOZXIaJmjI/xOHkioNptxdRT1 lyIPmWWKGinqw8szD2fnweU5f9qhoaigJLlNDrZkCPFzYvs= X-Google-Smtp-Source: ABdhPJwpKha4HTHeWrCnp3inlsVDTzBwi9i9LABl8f/Sm7C5Dp87zt+7mCsauIQNrdE6bwj5tZS0LOLTbxBqKBP+sMM= X-Received: by 2002:ab0:32cf:: with SMTP id f15mr4443260uao.68.1615814189374; Mon, 15 Mar 2021 06:16:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 15 Mar 2021 09:16:18 -0400 Message-ID: To: Rowan Tommins Cc: Internals Content-Type: multipart/alternative; boundary="000000000000c7e2a405bd930e49" Subject: Re: [PHP-DEV] [RFC Proposal] Allow methods to 'become' static From: matthewmatthew@gmail.com (Matthew Brown) --000000000000c7e2a405bd930e49 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 14 Mar 2021 at 18:09, Rowan Tommins wrote= : > Are you saying that having the parent::getSomeInt() call fail would be > problematic? > > Yes, that's where this becomes unsound =E2=80=93 you can call the child me= thod statically, but the parent call assumes a dynamic instance. This is just my perspective (as someone building a tool that helps prevent people from shooting themselves in the foot), but PHP should not allow _more_ unsound behaviour than it already does. Best wishes, Matt --000000000000c7e2a405bd930e49--