Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120669 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58685 invoked from network); 23 Jun 2023 19:50:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 23 Jun 2023 19:50:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE080180538 for ; Fri, 23 Jun 2023 12:50:42 -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.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 23 Jun 2023 12:50:42 -0700 (PDT) Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-562f8262e0cso734887eaf.0 for ; Fri, 23 Jun 2023 12:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687549841; x=1690141841; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xtUlzL+dz5qqzvJF4HZXtv0aIaMIwDxI0ZC4DXaC6x8=; b=sA5l52pMtar0ATLClcQzgA8Sny2uIaucH1Fm1uuMhukKJQmvIwSC7k71a+lvZqlpxd iwcB6gJBHs+3gi8Q4XrIMpyWpNOtqtDW6hACbI7OXI7I0iSwuLT+fHFWSY6kmm5rDOS5 G4ZG+hZT2J8WCspQpzuNwJN+wIrRhNreeASA+9UU1NFSgkqR8r7u3O0XN/ivhCOM11Kk r6KtJWrRzEzJTxxfb24CqYxQy5ERFtKRzLeasv9+dhn6d5eH2ju8xKKF0RpRtuMAXTDd HmgvHkTRR7g1CYnJ//UFCI3jyl+l/Muo2NxlM+513NTrEdCRlpGtg0BFnhLFYfhGKPI/ 6fug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687549841; x=1690141841; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xtUlzL+dz5qqzvJF4HZXtv0aIaMIwDxI0ZC4DXaC6x8=; b=CMiWyLKHbs8jT0hY9JbdPjPMvz9Grz98O4YBPQFnpmDlwZspea+AKWv6NQBGxRDtaC 9hw3iJYlyO4bTLuVRsSV+FXKB90gS5Yz3LO3I7m0SxNOwxIjJrkAcG2Pnn5iy/SsgWBr h7WNP6hlb7pKwWM0gBkwiQVOYXJAZNfjq/LpvFr6uP3iXiwnK4iPx6Ih9Ci/IgMnWg0R j4cEYzSoYeoy4zZY8zFKksmWw2MVS1jd+w4QTF/bnhVSohuvDLqpe6D/P2ulylu/55Pm dpPTJhDhem8+bTzG9G5pzr9drjhhSDXYNf33bm+wbmgrEmEnvMKjDoXTnWbPAgoZ9WYg QsEA== X-Gm-Message-State: AC+VfDxCTvAI6V7Yh+w6kfcqeay+IkEbRgMNpVXextc+dEiv1pKGp3fd LDbzoa4MiYGD6VwEFMQflX7Rl1wcivWMLjGkr1w= X-Google-Smtp-Source: ACHHUZ6OtAZN8a2Sq231Ey7UgrhtycYA6RBdenhM8ZhHbYgzwMPh6Sa/rxGYtp/ESobQD3gSiEuDhh5loOG5praDUx0= X-Received: by 2002:a4a:d695:0:b0:558:a42c:3337 with SMTP id i21-20020a4ad695000000b00558a42c3337mr18103871oot.8.1687549841381; Fri, 23 Jun 2023 12:50:41 -0700 (PDT) MIME-Version: 1.0 References: <017db925-da75-8054-7a35-c65457cd03ae@php.net> <22541969-c914-c7d2-e1c6-d3b9bf674236@php.net> In-Reply-To: <22541969-c914-c7d2-e1c6-d3b9bf674236@php.net> Date: Fri, 23 Jun 2023 21:50:29 +0200 Message-ID: To: Derick Rethans Cc: Nicolas Grekas , PHP Internals List Content-Type: multipart/alternative; boundary="000000000000d61cd105fed1506f" Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --000000000000d61cd105fed1506f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Derick, In any case, I don't mind this =E2=80=94 I'm actually going to suggest to c= hange > the constructor to: > > public function __construct(DateTimeInterface $start, DateInterval > $interval, DateTimeInterface|int $end, int $options =3D 0) {} > > And then *only* add: > > public static function createFromISO8601String(string $specification, int > $options =3D 0): static {} > > This solves the original problem of not being able to define the > signatures in stubs, and also extracts the most problematic of methods > into a factory method where it should always have belonged. > Thanks for your response, I've just updated the RFC accordingly. It solves the main issue indeed, and we still have the possibility to add a second factory method using the $recurrences parameter later if we deem it useful at some point. With all that said, I don't want to update the RFC anymore, so I plan to start the vote on Monday. Regards, M=C3=A1t=C3=A9 --000000000000d61cd105fed1506f--