Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84984 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80328 invoked from network); 16 Mar 2015 05:50:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2015 05:50:03 -0000 Authentication-Results: pb1.pair.com header.from=dennis@birkholz.biz; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dennis@birkholz.biz; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain birkholz.biz does not designate 144.76.185.252 as permitted sender) X-PHP-List-Original-Sender: dennis@birkholz.biz X-Host-Fingerprint: 144.76.185.252 mx01.nexxes.net Received: from [144.76.185.252] ([144.76.185.252:42775] helo=mx01.nexxes.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/83-06614-A0F66055 for ; Mon, 16 Mar 2015 00:50:03 -0500 Received: from [137.226.183.192] (ip3192.saw.rwth-aachen.de [137.226.183.192]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: db220660-p0g-1@packages.nexxes.net) by mx01.nexxes.net (Postfix) with ESMTPSA id 5EE5948244D; Mon, 16 Mar 2015 06:49:59 +0100 (CET) Message-ID: <55066F07.80308@birkholz.biz> Date: Mon, 16 Mar 2015 06:49:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: internals@lists.php.net, "internals@lists.php.net >> 'PHP Internals'" References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] About declare(strict_types = 1) From: dennis@birkholz.biz (Dennis Birkholz) Hello Xinchen, Am 16.03.2015 um 06:28 schrieb Xinchen Hui: > lib.php > declare(strict_types = 1); > function add(int $a, int $b) { > } > > add($_GET['a'], $_GET['b']); > > that means, I need to add a lots of (int) while I try to call a > function in a library which is not written by myself. that is not right and has been discussed a thousand times over. The declare changes the rules only for function calls in the file it is declared in. so: lib.php: The declare here does just nothing. Very easy, explained a thousand times over. Bringing up the same false arguments up again and again does really not help the discussion. Greets Dennis