Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104313 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 69462 invoked from network); 8 Feb 2019 15:44:27 -0000 Received: from unknown (HELO mail-vs1-f42.google.com) (209.85.217.42) by pb1.pair.com with SMTP; 8 Feb 2019 15:44:27 -0000 Received: by mail-vs1-f42.google.com with SMTP id b20so665566vsl.9 for ; Fri, 08 Feb 2019 04:26:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GQils83+7R+Njpu1buP4I0/2EFl1vomWCWISKyBvIHs=; b=bG01xDTKlijH/PEEFH8hAiUwT4G3XbJcYSz8uUDCbggNXn5NPVbqJTcAgpr/NOOz9j qUeMb0KpXXO4E0lATMES0pzncu5GkCIYFOhFklP9ny8U0hhhgV4T5BbIloECPtrhNbR4 9Ptx8oG+/PJtiQcMIW/xWG5UZwRWJXV1jY+XnTKo6K5fXcJIaZl3VNXeajyCo1iZ+kLp pQnMqezOR7qaqvAX+nzL4ZlgD6s8n/kKmLe4p1/OuL6Gzy56ZT+tjGtZVH2ipeMiJZw4 x++wh98Un65vQTVc/UugAjP+YhuclNunds4jYMHOKl0u52tzW87mSjosozHSOXQfM8EC L9zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GQils83+7R+Njpu1buP4I0/2EFl1vomWCWISKyBvIHs=; b=anVqB1PFjdZtyWbwNg5WAnAN4jkyYBBM03no3jEnJL9+PWhPEJVvC4ikHBeLUaicvC oQ2YscUAIex6QeE5TSIXLfRMB+r6SusQ3xRj4PU4HUJzZ/5ZhPx3qeN8WQoKpUwlpA3h yb2DXeoktGRgTHyHFfRAa2wz+9OgYiaNcmWg4+LRObiL+nlN0hHX9DTNIHcG+oWDwx6H 5ZiboZLbuPbatcWbrhFkM1Uc5nINA2rL3j8zYEiX2Q+OpV0o0grHka1X/7EQfyPLsoKR 1CsIomwi5DNNUL23Nq6ZdvMfjjN9tSnFFHIzzOndVwVJ3WAGv33PeJPARG+RGInbgrS7 HHGg== X-Gm-Message-State: AHQUAuZcLfFygjVxJ2o1VKYwCF5nAYLdMGFDRqW6+uSbMM7BotMapDd4 ZZGqZg0/QNVL10CBS0ZVu4gquKZaXnSQmQ+eXEQ= X-Google-Smtp-Source: AHgI3IYnhk0o6acwu2DFo6jIyn5PEtvjqWxKf6+hCDt6LNuqea+fJJn4fWpTfq35e/fPq8fudlSQkEipi3Pks9pKOrI= X-Received: by 2002:a67:8347:: with SMTP id f68mr6893614vsd.12.1549628779442; Fri, 08 Feb 2019 04:26:19 -0800 (PST) MIME-Version: 1.0 References: <695e24fe-386f-c11a-4bd3-81129cb9ffe2@korulczyk.pl> <42a5e3cb-358a-3e8e-0985-099263a57374@korulczyk.pl> In-Reply-To: <42a5e3cb-358a-3e8e-0985-099263a57374@korulczyk.pl> Date: Fri, 8 Feb 2019 13:26:07 +0100 Message-ID: To: Robert Korulczyk Cc: Marco Pivetta , Rasmus Schultz , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000eeb867058161105a" Subject: Re: [PHP-DEV] Mixed type-hint From: george.banyard@gmail.com (Girgias) --000000000000eeb867058161105a Content-Type: text/plain; charset="UTF-8" On Fri, 8 Feb 2019 at 13:13, Robert Korulczyk wrote: > Sounds like an arbitrary interpretation. Treating `?mixed" as "top type" > (including null) would be more practical and consistent with other > type-hints. > > Regards, > Robert Korulczyk > The whole PHP Documentation is based around the fact that `mixed` includes `null`, would it make more "sense" that `null` is not included, probably, also even if I do like the proposal it seems this is just to add a type-hint so you can *mostly* type hint all function. But in this regards I would prefer that the scalar RFC type hint goes back into discussion as it has potentially more use case IMHO. Best regards George P. Banyard --000000000000eeb867058161105a--