Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113018 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 12634 invoked from network); 29 Jan 2021 08:37:52 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Jan 2021 08:37:52 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4363E1804A7 for ; Fri, 29 Jan 2021 00:20:02 -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.8 required=5.0 tests=BAYES_20,SPF_HELO_NONE, SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 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 ; Fri, 29 Jan 2021 00:20:01 -0800 (PST) Received: from p5de2cde4.dip0.t-ipconnect.de ([93.226.205.228] 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) (envelope-from ) id 1l5P0Z-0000qt-Ot for internals@lists.php.net; Fri, 29 Jan 2021 09:19:59 +0100 To: internals@lists.php.net References: <88ABCF54-FA19-4273-9F04-FF6386758890@stitcher.io> <95314eec-3926-9d08-001f-bc999ab6248f@processus.org> Message-ID: <54ea03de-0698-6890-dd83-75f191df55db@php.net> Date: Fri, 29 Jan 2021 09:19:58 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <95314eec-3926-9d08-001f-bc999ab6248f@processus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [DISCUSSION] ReflectionType::accepts From: sebastian@php.net (Sebastian Bergmann) Am 29.01.2021 um 09:18 schrieb Pierre R.: > I think this would be a good addition. I personally had to write the exact > same algorithm to solve this exact same problem yesterday night. https://github.com/sebastianbergmann/type is the implementation that PHPUnit uses.