Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116189 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 95881 invoked from network); 3 Oct 2021 04:56:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Oct 2021 04:56:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3B9721804C6 for ; Sat, 2 Oct 2021 22:39:52 -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.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS20694 188.94.24.0/21 X-Spam-Virus: No X-Envelope-From: Received: from scarlet.netpirates.net (scarlet.netpirates.net [188.94.27.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 2 Oct 2021 22:39:51 -0700 (PDT) Received: from p5de2ced9.dip0.t-ipconnect.de ([93.226.206.217] helo=[192.168.178.42]) by scarlet.netpirates.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mWuE1-001SlA-7f for internals@lists.php.net; Sun, 03 Oct 2021 07:39:49 +0200 Message-ID: <425c1d22-86fd-71b9-d3ae-59f25229f1dc@php.net> Date: Sun, 3 Oct 2021 07:39:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unified ReflectionType methods From: sebastian@php.net (Sebastian Bergmann) Am 02.10.2021 um 16:37 schrieb tyson andre: > `ReflectionType->allowsValue(mixed $value, bool $strict = true): bool` Not having to implement and maintain that functionality in userland would be brilliant and much appreciated. Right now we have https://github.com/sebastianbergmann/type for this for use cases related to test doubles in PHPUnit.