Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116463 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 92916 invoked from network); 19 Nov 2021 11:32:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 19 Nov 2021 11:32:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3C6AD18053B for ; Fri, 19 Nov 2021 04:28:11 -0800 (PST) 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-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.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 ; Fri, 19 Nov 2021 04:28:10 -0800 (PST) Received: by mail-lf1-f41.google.com with SMTP id c32so42778055lfv.4 for ; Fri, 19 Nov 2021 04:28:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q0qIOExk3YUPfRGlywRSEhhC1YiyFeosI5j4cHx/5zY=; b=pF0WTvhL2Fyyvom+M862pT/bse2C9GGLEqEHiUzYhJk3GiJj6TMPKqw2XruEvXHCsG W6wgCWX7HtxhScPX9yWQB+R0TLEsBcwpsg4bFGlAEYN7TGXhkJBMJKySQCYw4vdtiQfb FhUY9lv18DoGN+ao+9WEJg+MZwTrQFt+IJ+eKFPHAMQC09PTfMRae3LuA68LQWwuse+W okGXAer7JTj6ORNxBilFoteP0PrvpQoIGaZpSuBLKySZAWdTH2IPWpkh1TFVJcLhtxAR ZbDwLOp2euftPAe1XfUApzg1Dy1A24R1HMN9n8kCLsxA8Naet49qsGFb5rd3qgYFbLb1 +dHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q0qIOExk3YUPfRGlywRSEhhC1YiyFeosI5j4cHx/5zY=; b=DsTVvBmzbAeQSvNUUsS/zXgdTryTZEFjjAGeUSlFSJyLDXeEFZWihGAhf/UfMBTs2W entVNE+NzLIohtwECaPuQPyU1y2OUkUqdB4ap/+zkSpCmNKyV6epXSXGDswniEzBHVGu FMYisYxWdt0AVOvaNjCIhIbBbg0VE0RHXezyU1O/ShbxGRSY8H4eK8i/JYVZcXXbBD36 eyWpWQQRZoBezmT4lKVJ7rtDsqcI10EJfXtCma2FZrZLTNqGN4/mpKkVv6al/dECagXs 8YHpkM+YihnMVIJQM2OWoLfSlnHfYvKtPgYa01Tcz38CzU4TM69pVqGezb908CJLnnI8 /AdA== X-Gm-Message-State: AOAM533J02GVEwkS8O6rpMaPBRNR6qmHVrG9Fo6QhE5bw54yZ3Qttl0t MliYb0bZejbcC30JeFk2a5UV8IvD7UIo01mHeQ== X-Google-Smtp-Source: ABdhPJxTipR04P3uZNyz6PMkjBB5ZAXW1LY+POMFXMP//bcWrqecPNKTBYXAF1L10ULvPuA9z7MkuGLOlJW4BWftQqs= X-Received: by 2002:ac2:5310:: with SMTP id c16mr33108254lfh.580.1637324888824; Fri, 19 Nov 2021 04:28:08 -0800 (PST) MIME-Version: 1.0 References: <05aa01d7db0e$783fa120$68bee360$@webkr.de> In-Reply-To: Date: Fri, 19 Nov 2021 13:27:59 +0100 Message-ID: To: Kamil Tekiela Cc: PHP internals , nikita.ppv@gmail.com Content-Type: multipart/alternative; boundary="00000000000061610005d1236892" Subject: Re: [PHP-DEV] Is there an RFC/discussion for ::class being a specific type? From: guilliam.xavier@gmail.com (Guilliam Xavier) --00000000000061610005d1236892 Content-Type: text/plain; charset="UTF-8" > > For example, this is valid: >> >> echo "string"::class; >> > > What! Why is it allowed when it gives the same as string::class, and > $string::class is an error? https://3v4l.org/hfvXm#v8.1rc3 > Sorry I forgot the namespace... so it really gives the same as "string". https://3v4l.org/rlZFF#v8.1rc3 Still surprising... maybe possibly useful for dynamically generated code? :/ -- Guilliam Xavier --00000000000061610005d1236892--