Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104227 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 57050 invoked from network); 6 Feb 2019 11:37:24 -0000 Received: from unknown (HELO mail-it1-f174.google.com) (209.85.166.174) by pb1.pair.com with SMTP; 6 Feb 2019 11:37:24 -0000 Received: by mail-it1-f174.google.com with SMTP id w18so4310796ite.1 for ; Wed, 06 Feb 2019 00:18:44 -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=KCA8sFrOUE/ooZaA0ZxjTw/n131p+6zNSHoWrprdCOc=; b=BltSqoM2BQZI2H8ZGM+2b/4LUz/PRslu30LETMm8LMbPDonHLClPQw5YpNn0eeOPEU 5mrwzz/rRGae/tot1o7vWMoyjeJlS220w8bvLMjd99caZWpBgzALP4k7+JPWehN2T+oi H6D2nzzxM7yL9qBjmMRcbM2G/ar2KtBOzvUL2bhWBzu6K9hibulpokB1gG4ltMkXyrq2 lYVCOmDJ/29Nws4I29qhB4oa0hvZjYRMgKvAcibl5Oyrt11/dD230dyKpWQ5Y51v4r0u +LJxrpfE69sazzt55wDJ4F4lrxvXebh9OqZJImClMoBP1BKGp7hhzFhCCwJdMdthKz11 Vssg== 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=KCA8sFrOUE/ooZaA0ZxjTw/n131p+6zNSHoWrprdCOc=; b=Ky9E1Sfio18SwNGFKbH1CtJPlTdFfWZErVyioHJHKgNZ+0euL9ruL0P3FUoMPLjaJJ TDimADjTOE20sMDG9wb7SfNXJdpcWiGgIoZE65JuvSKb2Qd//dKE4H/lAE8C7qwPDgbM Axj2y1n3R19jQa2UnrtI+PYxy9wnlpK6OwzQ94eY9DB7e1mVa3BUw2AU3nJD+YV2J9ff dLiuO6yyx7VjkPWSt00FjwqikecbwJWnt7WisRIUhL5uYRrjIJY2KE9uBjBpogR/b09o KriKMAlfV/R0Re9ye7AviOTo7ftCC3xTXvx/8xjsANEVvJnbqVTItvqiM0PUsHRzslrR pfTA== X-Gm-Message-State: AHQUAuYwG9r5vnlKOW2e5bN7rOf1bum6rrBlmBo0wE+ramZehR1zSFbR TkYTWstcWvkQ8LWTVggCLaW7QSoJMr1N/Yf43P8= X-Google-Smtp-Source: AHgI3IYWAbrjyMjVonj252M3BrxOLEHIkXgGSER0XH5N7LA7HE4vkTUqXOWynRphVl0pguFK+qvvhB4STjwKWIEWE3k= X-Received: by 2002:a05:660c:74b:: with SMTP id a11mr1479705itl.27.1549441123991; Wed, 06 Feb 2019 00:18:43 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 6 Feb 2019 09:18:25 +0100 Message-ID: To: Nicolas Grekas Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000cbcb770581355fda" Subject: Re: [PHP-DEV] [RFC] Consistent type errors for internal functions From: nikita.ppv@gmail.com (Nikita Popov) --000000000000cbcb770581355fda Content-Type: text/plain; charset="UTF-8" On Wed, Feb 6, 2019 at 7:30 AM Nicolas Grekas wrote: > Hi Nikita > > > https://wiki.php.net/rfc/consistent_type_errors > > > Would it make sense and be possible to trigger a deprecation notice in PHP > 7.4? > > That might help the ecosystem move forward in a smooth way instead of > experimenting the failure when actually moving to 8. > > Nicolas > I don't think so. We generally consider a warning a "harder" error than a deprecation (unlike deprecations, they are part of the default error_reporting level), so I don't think replacing or adding a deprecation would do much here. The only way you can be unaware of problems resulting from this change is if you are deliberately suppressing warnings, in which case chances are very good that you are also suppressing deprecations. Nikita --000000000000cbcb770581355fda--