Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109274 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73248 invoked from network); 24 Mar 2020 16:04:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Mar 2020 16:04:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id BA6C51804C5 for ; Tue, 24 Mar 2020 07:28:55 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS6830 91.118.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from mail.thelounge.net (mail.thelounge.net [91.118.73.15]) (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, 24 Mar 2020 07:28:54 -0700 (PDT) Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 48mtsc4fhyzXPc; Tue, 24 Mar 2020 15:28:47 +0100 (CET) To: Rowan Tommins , internals@lists.php.net References: Organization: the lounge interactive design Message-ID: Date: Tue, 24 Mar 2020 15:28:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Type casting while array destructuring From: h.reindl@thelounge.net (Reindl Harald) Am 24.03.20 um 15:23 schrieb Rowan Tommins: > On the other hand, this is exactly the kind of thing where strict_types=1 makes things worse - you'll actually get *better* error output if you use strict_types=0 and pass the string to a function marked as requiring int no! with strict_types=0 the casting simp,y happens by the caller and you get no error at all