Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104101 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 75331 invoked from network); 4 Feb 2019 11:17:19 -0000 Received: from unknown (HELO mail-qt1-f177.google.com) (209.85.160.177) by pb1.pair.com with SMTP; 4 Feb 2019 11:17:19 -0000 Received: by mail-qt1-f177.google.com with SMTP id u47so14432260qtj.6 for ; Sun, 03 Feb 2019 23:58:09 -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=uA+2r8s5IzSz/QsQK0e+RjsV28KQbiu2y2ZYLFQYbAk=; b=s5iIJ6/LWZ/JGZChFatqA3SJlg3WxxC9XJsuPkazF24Wc7oN1aKmfIBVA2jU8eww5n pLROJ/QVF3eOHTMaG8LmPeVcmbmHXYMDvifi27Y3GtwtfNFlo0CyKZn1LPDUz13CgO8Z pxlhhyxdlCdKHOSOR1lITR6lTG/COlvFtAx0xmV68vRgPK9l6aBUHByeuoHvO38bwjq3 kz4XVtJZUgR4UEuDcxbxqE5m7kvP/GC3LANG9INn5SRWu6CSE2dyYE862rjx8442UVwx WDGHEuiL927JIJYkRfy3iD2NJoBr6etjbFNG414xkCvi/tSEZIBFzFlhowdqZZdaaQ68 030Q== 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=uA+2r8s5IzSz/QsQK0e+RjsV28KQbiu2y2ZYLFQYbAk=; b=bLmGHHOauOF1zmdd3C8n/y2TlKHVQSFjxjuLwp38hQaul27Ac4rBUiIewbzfHo4+hQ EuoxHYKPpcGmxsMhV9RdsJDwbBfD3ndWXrG9vkVpxGhNASN/lp5iErFfZ/gboEC0teQA WNhVy+NX/qPvg+/MfloVGog9uYZ+4xZJ+iKfc024Qqf3dJ9OKaVDSUUI1HX2r4Q8EjV9 mbCQkPWx1XqdoVhIxEvOULmDhrtnJIocr0tRFUXtKeG1l64LK71l3oKil+RpF5/KNiC4 xD3jD9oyTGDZ6oj7aUEwlWSKyooDR2EGp30Q8U0qdedZnTM7zbL2QR3ueXEgDfKRcimM DjUA== X-Gm-Message-State: AHQUAuYxKXV2SsXnYEI3C6KyebZmZCbvLVFPjnDWXk1AGWkqQeuxbEKS rYod7zL9dYA8YTzOwEB7dJU66ufFLKJS6I4Yqyg= X-Google-Smtp-Source: AHgI3IZ+WAkjluQNckwmscLWQ8kUVr4VZV74Kk2TYy/GZ00KxmuXK4BLpeoJYFlLxeH8sf4I3L1OQ0t6MhiKWfBz3f8= X-Received: by 2002:a0c:8322:: with SMTP id j31mr9537611qva.56.1549267089137; Sun, 03 Feb 2019 23:58:09 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 4 Feb 2019 09:00:42 +0100 Message-ID: To: Claude Pache Cc: PHP Internals Content-Type: multipart/alternative; boundary="00000000000082a30205810cda89" Subject: Re: [PHP-DEV][RFC] Allow void return type variance From: netmo.php@gmail.com (Wes) --00000000000082a30205810cda89 Content-Type: text/plain; charset="UTF-8" Hi! PHPUnit 8 changed e.g. ` function setUp(){}` to ` function setUp(): void{} ` and a lot of people did not like being forced to do the same on their `setUp()`. The issue is not PHPUnit adding `void`, but PHP forcing `void` even when it's not necessary. If PHPUnit wants to use void but inheritors don't want to, it should just be possible. "probably a bad idea" is opinionated, in reality there is no provable reason to disallow it, from a pure type-theory standpoint. --00000000000082a30205810cda89--