Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104307 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 47265 invoked from network); 8 Feb 2019 14:39:05 -0000 Received: from unknown (HELO cache4.mydevil.net) (213.189.55.195) by pb1.pair.com with SMTP; 8 Feb 2019 14:39:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=korulczyk.pl; s=devil; h=Content-Transfer-Encoding:Content-Type:In-Reply-To :MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=GInwwuyj1YankX0FHAeDsPpSt3BjBnJZHUfFaqioGHs=; b=Md+IIaOEJR+uMcWw0dPVC9sDdd dpWclloHQA9Ucro6tdQD7qgmtrdoo+UhaDJ51ga7umIY3UVYOTqHyg+i+2L74AspAoE6EQRb00bjM 1scYpThdytQ2pnQSppwuz3NdLRQizqOXGQCgbrcikpb/8trXv0u6FXnsa7GmtHFs6xWg=; To: Rasmus Schultz , PHP internals References: Message-ID: Date: Fri, 8 Feb 2019 12:20:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AV-Check: Passed X-System-Sender: robert@korulczyk.pl Subject: Re: [PHP-DEV] Mixed type-hint From: robert@korulczyk.pl (Robert Korulczyk) > Without this, the mixed type-hint is basically meaningless noise, is it > not? About as effective is a doc-block? This mixed type seems to be meaningless by design since its main goal is to work the same as if it was no type-hint at all... Another thing is that including null as part of mixed is not very pragmatic - mixed could be used to disallow null, so it will actually work for type check. Regards, Robert Korulczyk