Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104230 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65948 invoked from network); 6 Feb 2019 12:01:53 -0000 Received: from unknown (HELO mail-ot1-f45.google.com) (209.85.210.45) by pb1.pair.com with SMTP; 6 Feb 2019 12:01:53 -0000 Received: by mail-ot1-f45.google.com with SMTP id k98so10626050otk.3 for ; Wed, 06 Feb 2019 00:43:14 -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=oKMH0paCjSI8xYNKyvqG1LzXX59jRBOoC/t2kuyvrNk=; b=eiBoE0bCrlV2AsZP53VzqgkbrNRvOBisRtVO5tv2SWkJJl9sZ3s0ISn+R1or58LSTX XHJlxhk0hpr9dMtO+jBM4gZl1m4RbjsYM16JL9XPAjiBKAE911dXCJfE0cQCLNtVWn8N WfmQVUHtqCerK56wnzNH5t7o1Df3pYL32V7k4bE9F5ZYm2gnRnCS1OUGksh6D7lWEuVs b1kufqR/WkHX2GJ6tMF65Uyec6a73hxOwqTKuwCMs4bMXwNX0AkApzlyDOHpeAx1qmVl 5ROnq+182e6Szuh6In1FzBHdP2VfZOg5scLgW5XAJ2NBValww6kijB20A4ci03jzoTSa CFnw== 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=oKMH0paCjSI8xYNKyvqG1LzXX59jRBOoC/t2kuyvrNk=; b=mwgLstRw4kokjRDkB/RR+R4uvaHnT+1R9TXP9JJbB/xDKn9pf3bn+J4OAwaOB/NtCX XxppMDvFaB2iE5FRBOwcD6nx4WNddFsyrwheJ81WR01X7CHB2v7xL1eOeevyvSDttKVD Pw842s5P+LBQ3+6IO8Wh8auZi/d2aW6id4nll5bQHIJOQjSphMA23PIHtBOQO39H4M7X AZ2Yds+vBEHeMXFQEyQ5yT716b8Y67CkuuvSA/LfxocRIgysVZRhTGPyjlh92mwnJII9 v+QaF/CbbE182ZKBiD2zXOYOIaNJnkoKPXDIDzLi+RDVMG3Ht+qbXaqfJuozw/1Ev1v3 Blqg== X-Gm-Message-State: AHQUAubQFc3O/9mKQeA/KGfiJlxYcqKt2rhlR0Zv5ZfQgxP7PZz9dgXy JXeoFI278vJWUFhojcClMPTxA0Dd2yL7/uNoCbo= X-Google-Smtp-Source: AHgI3IajGE1bLcy2SXnHp6zFPNeHZF9uZsoRTnU8eERgTVYrds5lqmJAfYX1VkoAokUJBNpHQkL1zPtSI21aMVb0wcg= X-Received: by 2002:a9d:630f:: with SMTP id q15mr4800377otk.187.1549442593927; Wed, 06 Feb 2019 00:43:13 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 6 Feb 2019 09:43:02 +0100 Message-ID: To: Nikita Popov Cc: PHP Internals List Content-Type: multipart/alternative; boundary="000000000000693881058135b73e" Subject: Re: [PHP-DEV] [RFC] Consistent type errors for internal functions From: nicolas.grekas@gmail.com (Nicolas Grekas) --000000000000693881058135b73e Content-Type: text/plain; charset="UTF-8" > 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. >> > > We generally consider a warning a "harder" error than a deprecation > Do all situations that will throw after the RFC trigger a warning right now? Eg var_dump(substr(null, 1)); doesn't trigger anything but returns false - does that mean it will not throw a TypeError in your proposal? > if you are deliberately suppressing warnings, in which case chances are > very good that you are also suppressing deprecations. > This assumption is wrong in the Symfony ecoystem! We built the deprecation framework around silenced (and unsilenced) deprecations, which are all caught and logged. So it would make a huge difference actually, at least for situations where no warning is triggered (see substr example above). Nicolas --000000000000693881058135b73e--