Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:116154 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 10769 invoked from network); 25 Sep 2021 05:25:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 25 Sep 2021 05:25:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF8231804A9 for ; Fri, 24 Sep 2021 23:07:10 -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=-1.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NEUTRAL autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS20694 188.94.24.0/21 X-Spam-Virus: No X-Envelope-From: Received: from scarlet.netpirates.net (scarlet.netpirates.net [188.94.27.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 24 Sep 2021 23:07:10 -0700 (PDT) Received: from p5de2ca5d.dip0.t-ipconnect.de ([93.226.202.93] helo=[192.168.178.42]) by scarlet.netpirates.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mU0q3-00193Z-R2 for internals@lists.php.net; Sat, 25 Sep 2021 08:07:07 +0200 Message-ID: Date: Sat, 25 Sep 2021 08:07:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 To: internals@lists.php.net References: Reply-To: internals@lists.php.net In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] BC breaking changes in PHP 8.1 From: sebastian@php.net (Sebastian Bergmann) Am 23.09.2021 um 18:52 schrieb Nikita Popov: > I believe that this continues to be the default behavior of PHPUnit for > example. This means that in practice, deprecations do break code, even > though they are intended not to. That is correct: by default, PHPUnit converts PHP deprecations, errors, notices, and warnings to exceptions. While disabling the conversion of PHP deprecations to exceptions, for instance, is possible by setting convertDeprecationsToExceptions="false" in your PHPUnit XML configuration file, I do think that the default should be changed to not covert PHP deprecations to exceptions. The next releases of PHPUnit 8.5 and PHPUnit 9.5 will change this.