Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115986 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 84086 invoked from network); 7 Sep 2021 09:51:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 7 Sep 2021 09:51:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7E95C180505 for ; Tue, 7 Sep 2021 03:28:50 -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=-0.2 required=5.0 tests=BAYES_20,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-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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, 7 Sep 2021 03:28:50 -0700 (PDT) Received: by mail-ed1-f41.google.com with SMTP id r7so13199079edd.6 for ; Tue, 07 Sep 2021 03:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=87EzSTYOF6Dcp03/kgpbR8wKCMXaadD4Bv2kJCW87a8=; b=YBfn9SdU/+dFWVfhcVEvbZVjtt9/ql7JTHeg8Qcda8M6N0qRr6cT1fo+QdV4XEYNm3 O+z6i2IYD9cVQPePcG7THiBlqsTFuFK5KO9hnlE7XG2XNUShjdX0+q7h/zzqfaxJjz+a 3Ton/I5VNsRhgx0M+LqqsXrCMd2Z5uk22gdM3gBvCAN8hKauzaoi6JsOEryiwkRI7ITz UYNpFn4naj1eDxUnG/3+aHJxqyoWXR9lwnYBo7jZRauZthzXj5BFshcldctQuzALoZfV aJOteWyedv5Wl0uapUDwxHduZCDrLCRGDgy3Zx29uAK61sox6HdqdwuRykTehl3EVNxE KmRA== 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=87EzSTYOF6Dcp03/kgpbR8wKCMXaadD4Bv2kJCW87a8=; b=uMZBjbpPtCjxZfiXFOlIR3d6bLu87S14jD0rkALCkF9nmQXHHqmbJQMohiLsBc2SFp W/bnsz0gyIvcCxxxftlQflsn+oXxFRsgz3Gr2n9FWQ+JKCF3GsCoKpvjJI7o2T/danUt jvQt85tkrF/bihCPtV06C1uPAyWa8anonxNk9p6MzCGHA/fsufF10carK/TRXHgPbQ0P qT72ttwk0aEsPC4W1FL4NbNaAKufCAk6LcvPPDFl0NHVf2gJXrmoS25/BuLeNst660SN oTtG5qfbyUx4EcGzM3qSWctAM/2Jzy0aExgPt7IrosVEKwkaXRD2uQEtbcWzG/nQvI0i KsvA== X-Gm-Message-State: AOAM533GwA/RSCVefstYl2k9/qDXAA3lW97u4KY0V6jyXngDv22KIetp WctwOAuA7H3+VfYUjtG55faSePz/I8JRvb2dqTlJVYPz0qc= X-Google-Smtp-Source: ABdhPJxI+iHJN4fk28/7fW7YXEPn+u631aOEFA+3tW7rH17KyRdDu6KagRrNCaFptr3p5T0INbAmJk5adyvNXV8TXGA= X-Received: by 2002:a05:6402:1cbc:: with SMTP id cz28mr17822682edb.370.1631010528541; Tue, 07 Sep 2021 03:28:48 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 7 Sep 2021 12:28:32 +0200 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000002dbe4605cb653ba2" Subject: [RFC] $this return type From: nikita.ppv@gmail.com (Nikita Popov) --0000000000002dbe4605cb653ba2 Content-Type: text/plain; charset="UTF-8" Hi internals, I'd like to pick up a loose thread from the future scope of the https://wiki.php.net/rfc/static_return_type RFC, the $this return type for fluent APIs: https://wiki.php.net/rfc/this_return_type I have some reservations about this (which basically come down to $this not being a proper "type", so should it be in the type system?) but I can see the practical usefulness, so I think it's worth discussing this. Regards, Nikita --0000000000002dbe4605cb653ba2--