Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108636 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 33170 invoked from network); 17 Feb 2020 09:55:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Feb 2020 09:55:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 52998180532 for ; Mon, 17 Feb 2020 00:10:50 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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, 17 Feb 2020 00:10:49 -0800 (PST) Received: by mail-wr1-f50.google.com with SMTP id y17so18427170wrh.5 for ; Mon, 17 Feb 2020 00:10:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventis.be; s=google; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version; bh=vcE9cF7gXLjjCgjIfSwTTOueGJxmhusOKsk7nsFMFfg=; b=d1IAAZqWs99K5+mCI6pcWuZagUIa8if+zFsR210lDDvz08RWZshS7GavkE+tqBISgg mPWOpUJO11IoAWsqzhYU7ddWnZiWzcIOQ6vR89C/uCpLRdJXSU5etZuheUfGexnEVmj6 /P30gcpvmSQfRBhfnQOUPZX4M7eIiMINsWxlQODXtwdXftuuqVUp5vYd37N9j2lHfvJu BQK35u96a5L1R5C8za+DvRmBGTlyUQeDtzIpqzAlx6GPezcCEI0Xi0CEhcpbbbLHlPpT ewBAA+u5ERUVAbCzqR6jlUjFFCXl2TTk+iiIvE5TE3pjOS5dJsMq93tnmXfmcgWTHVCB zWhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:message-id:in-reply-to :references:mime-version; bh=vcE9cF7gXLjjCgjIfSwTTOueGJxmhusOKsk7nsFMFfg=; b=BKrQSPNuKwZz9W0f3KhsjnhJsHwFIBVEFMkEjOdxZnliBldYDIkJ4UpA00Xx1E5CvI TxakzjocqnusQvk3+B0/cN/b08dbOYl+Sfc/O46mcoNVmJIJLEcdIqOniFqSoJMVIjjb GVShneIX28GNquvdgkhKH/yKOCrqsXRORb9EHZ5bVG/bdwUpDBOLDmZ+oCfREmjdbmyy c9q2hfSGLAD3s9rFDOexNAotA5SN7g1BpzBByOJzCJr1R6sJEbGfBoLgdqS2zbyt74sv lC+kSEbNxM7rFub/hvYmAC0qjObuvL8fQhqiZ4RsMH6XoW5nsBsLKOMPKP6E4UTEzpVE tuUw== X-Gm-Message-State: APjAAAU7ZVTco3K6VhjCzKkTKegW/G1hXWcrTMvQtgB+/aMfCP77cNEj /Tf6zeypC+sqf8PX7GIrnbg/SQ== X-Google-Smtp-Source: APXvYqyyDp4AV8JcQsPKr8WFAyeWcp6XWQE9pnt/W+iG9pm5maHx3Hrj2s0X/IrW6bXWWCp89A17Cw== X-Received: by 2002:a05:6000:1:: with SMTP id h1mr19139061wrx.380.1581927045799; Mon, 17 Feb 2020 00:10:45 -0800 (PST) Received: from hephaestus ([2a02:1807:4410:101::23]) by smtp.gmail.com with ESMTPSA id n8sm19074231wrx.42.2020.02.17.00.10.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 00:10:45 -0800 (PST) Date: Mon, 17 Feb 2020 09:10:44 +0100 To: Mark Randall Cc: internals@lists.php.net Message-ID: <1581927044.1085.0@inventis.be> In-Reply-To: References: X-Mailer: geary/3.34.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Subject: Re: [PHP-DEV] [RFC] get_debug_type From: tom@inventis.be (Tom Gerrits) Hi Mark Thanks for this proposal. After the proposal by Nikita to allow ::class on object variables, would it be opportune to add ::type for any variable, with this behavior? It could behave like ::class on objects and return a string indicator of the type for other types, such as scalar ones. This could even include allowing ::type on actual types, i.e. int::type, MyClass::type, $myVar::type, GenericTypeInTheFuture::type, and so on.