Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110577 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93735 invoked from network); 16 Jun 2020 11:41:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Jun 2020 11:41:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 89F5F1804E1 for ; Tue, 16 Jun 2020 03:26:55 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (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 03:26:54 -0700 (PDT) Received: by mail-vk1-f171.google.com with SMTP id y23so1583464vkd.13 for ; Tue, 16 Jun 2020 03:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=G066bGqvY/o/64vO2O0G54dqrjua32NLJ5/dAVMPdV0=; b=GlaTZr0Cly5e6T+OiPPomQBCqsFPf4iiOIlOibDZrNoefKkM5+qhT7VDal+7vDLseq 3g/RJ3tXuqAAcLB4vxlzW6HVOQOXaZQugcfSraqHR9y4y8gLTdaEURk3s8YIlgfJKrIz k6lNiZ0Lu0q9PboJU74mgEt/MRYgFyeZMv7mAkAoAyELNBWOhtyHm2lcjbdTRuX4X00k doufTXY7lsOwlRokSMxuL8LcY8QpO0glOebgrHF4ws8jV9ln0t723JAtswmeAqVlEm9i kyhF23iZHgFltChK8GO9+NNb2sfS1Djg9Wr+SmW6OSyWEqzLx0lZjkU3wWkxYf03lKQR 8YgQ== 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:content-transfer-encoding; bh=G066bGqvY/o/64vO2O0G54dqrjua32NLJ5/dAVMPdV0=; b=q8pNV4BsezSL9ogXhMlXOsCda6WQEW1GIo0ECfxAxvU3jwtmF0pk7agSvFhUOPh3O/ VkJy8gpIMwC/oz6XRF2Cw1Eqxj1P3ccPR1IZu9dasor6ofvIq8htB3EqPMDFN7aNjA9g UDaW+V+a87P0yvW5Cx4CLzL2PAg5Jr611Quio1wgHChlj4DrA8cTsAz8hC8u2nAaLI7a kZoACqvGe28vZtmRzd8x+a1so1/QHODHMsC/vmX3yS1q0jLmomK455K9EifvrBNp8XOO G1yseQryCg28Z0bCWwjxQgTuKaoBqOq1Yt45kmYL2WThyxAkb1k56CQ4wXXacWDM8dPd fR/w== X-Gm-Message-State: AOAM5331vgpB4Nem6Mv959RbYpnIRotAscDJfL+XQvuJtEOWRE6dUe2D 36yaX18+w0JpzetRN/2Mq9C0g6fF23jv6iLDRRFujA== X-Google-Smtp-Source: ABdhPJzjLPd2YeniytOpmRmT9zE0oj3vS2ptdACbb0uygOUnfFY4Sg7ajLDWB4NV4O2zedKz9nEWAcxukSH9hTa/0tg= X-Received: by 2002:a1f:bf07:: with SMTP id p7mr1004621vkf.2.1592303210208; Tue, 16 Jun 2020 03:26:50 -0700 (PDT) MIME-Version: 1.0 References: <9D1E1E08-7DD5-4FD3-B08E-58254CC75FC5@newclarity.net> In-Reply-To: Date: Tue, 16 Jun 2020 11:26:39 +0100 Message-ID: To: =?UTF-8?Q?Micha=C5=82_Brzuchalski?= Cc: Mike Schinkel , PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Remove LSP checks on static methods? From: Danack@basereality.com (Dan Ackroyd) Mike Schinkel wrote: > My primary use-case where I would like to see checked relaxed is > for static methods used as factory methods[2]. Mike, It's not reasonable to expect people to read multiple links and try and guess what you're trying to say. If you can't express the exact problem you're trying to address, it's unlikely to get a useful response. Mike Schinkel wrote: > Per [3] it seems that all but the least upvoted answer argues that LSP ap= plies to instances, "language-agnostic" Arguments that apply to other languages do not necessarily map well to PHP and how it works. Again, the problem would need to be clearly specified before a useful response can be given. > Micha=C5=82 Brzuchalski > In that case maybe a core annotation like "Override" to relax checks ?? I'm pretty sure that annotations that make it harder to reason about how code is going to work are generally a bad idea. cheers Dan Ack