Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119166 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88769 invoked from network); 16 Dec 2022 12:49:10 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Dec 2022 12:49:10 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB993180503 for ; Fri, 16 Dec 2022 04:49:08 -0800 (PST) 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.1 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_NEUTRAL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS30827 82.113.144.0/20 X-Spam-Virus: No X-Envelope-From: Received: from xdebug.org (xdebug.org [82.113.146.227]) by php-smtp4.php.net (Postfix) with ESMTP for ; Fri, 16 Dec 2022 04:49:08 -0800 (PST) Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 3F3C110C0AB; Fri, 16 Dec 2022 12:49:07 +0000 (GMT) Date: Fri, 16 Dec 2022 12:49:07 +0000 (GMT) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Marco Pivetta cc: PHP Developers Mailing List In-Reply-To: Message-ID: References: User-Agent: Alpine 2.23 (DEB 453 2020-06-18) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [Vote] More Appropriate Date/Time Exceptions From: derick@php.net (Derick Rethans) On Thu, 15 Dec 2022, Marco Pivetta wrote: > On Thu, 15 Dec 2022 at 15:27, Derick Rethans wrote: > > > I've just opened the vote for "More Appropriate Date/Time > > Exceptions". It runs until December 31st, 24:00 UTC. > > > > You can vote at: > > https://wiki.php.net/rfc/datetime-exceptions#voting > > Happy to see this move forward, so I voted YES. > > In a theoretical patch, I suppose it's possible to refine these types > further then? Yes, that would be possible. As you know, subclassing them wouldn't break BC. Whether there is any use, or scope for it, is to be seen of course. > https://github.com/php/php-src/blob/b9cd1cdb4f236b7e336b688b16d58a913f4d5c69/ext/date/php_date.stub.php#L363 > > Would the stub system be capable of documenting exception types? Yes, they are just classes, after all. The random extension already does this too: https://github.com/php/php-src/blob/b9cd1cdb4f236b7e336b688b16d58a913f4d5c69/ext/random/random.stub.php#L167 cheers, Derick -- https://derickrethans.nl | https://xdebug.org | https://dram.io Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support Host of PHP Internals News: https://phpinternals.news mastodon: @derickr@phpc.social @xdebug@phpc.social