Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:110612 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 29105 invoked from network); 17 Jun 2020 00:25:33 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 17 Jun 2020 00:25:33 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B9C0B1804DA for ; Tue, 16 Jun 2020 16:11:04 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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, 16 Jun 2020 16:11:04 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id o4so124898lfi.7 for ; Tue, 16 Jun 2020 16:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oHP6hGMUNeH/cH2rfNPGGajdwMZw/T6Iuu844HU3SFg=; b=nfNOK3k6Tuwf8YQGo+a5n8N2WCTaum1RxXPd0apN3rkpknHI3JLwghlOLi+hGrg8vQ OpS1dsjhLdUWrBGj6BtI9QHB3c/Dt3fsH2n0TiO52XMXEsj55BhcXYIUPzfCzKyCSBCC pS2vwIaKC83TBcHWy65dQExCyh41KkwjgOp/k0BI4/eSnnrcgsLfWSzIU377CaaEF0BM OGXdYv4YsjWWbQ0lLrjKn5OYkwCQVWpEYZEW9CoyPfz7nrQ7FfjkUifOm5G157S0HDyt 8ZzXGu1luxF9MX03TISaMlBPxfU2BW/BsPv1tzEtMWoJZArTZroxSNv/jaQD4JUuMIPn UoBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oHP6hGMUNeH/cH2rfNPGGajdwMZw/T6Iuu844HU3SFg=; b=WJfdqmVSvC03+RDVbNLhvFEK3eftz4Kqq92ixosoza8pDy5aw399ZS2iYx5vaIB0+5 ri9FJ606XVGgmEb87LrwgrMro7UU5btr6F4RoRx0PCiAXhbVS7geOvjMPmpjUJo5erig IaQAZjiJpSV4rHq6VzWjGK+mu0ULdZ3iAHkT2Gi741LfDnrfaq3S2enml+2LR+hOOOQA 7+vk/H0iDaT+WKSGD42I4i+Nt7t3iB/91s/X4UCjy9Cld4384RhbmVF+lZS+h/VJYQqq 7SkRBB3oljK8zHCDPeNQSBUP8JNjel9b7KKC7kvxK2mbwoArj2AaEbfVzzyg5nspi28M f9YQ== X-Gm-Message-State: AOAM532xKRM3NgmVXjmuGRCl8GkTPYqzYo/SPJ9OEwpksaUyNxDaQQFh i2ELVBbvrbm1DJhWVPZ2gEFX1Lp0zZBpeNxIMBQ/YoGE X-Google-Smtp-Source: ABdhPJxRKUsQc9Ld7Y4rLQFafSbBk9v5+0B/oPk6WwmkElCwzNMJy512cCaju3pMTdpwirwEH7PJb0hfQwBlhvAu2xo= X-Received: by 2002:a19:8389:: with SMTP id f131mr2854692lfd.16.1592349062403; Tue, 16 Jun 2020 16:11:02 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 17 Jun 2020 02:10:51 +0300 Message-ID: To: PHP Internals List Content-Type: text/plain; charset="UTF-8" Subject: [RFC] [DISCUSSION] Make constructors and destructors return void From: benas.molis.iml@gmail.com (Benas IML) Hey internals, This is a completely refined, follow-up RFC to my original RFC. Based on the feedback I have received, this PR implements full validation and implicitly enforces `void` rules on constructors/destructors while also allowing to declare an **optional** explicit `void` return type. Note, that there is a small but justifiable BC break (as stated by the RFC). RFC: https://wiki.php.net/rfc/make_ctor_ret_void Best regards, Benas Seliuginas