Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120568 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 79407 invoked from network); 13 Jun 2023 21:02:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Jun 2023 21:02:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3269D1804AC for ; Tue, 13 Jun 2023 14:02:47 -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-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 13 Jun 2023 14:02:46 -0700 (PDT) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-55b3fe7a788so3410eaf.2 for ; Tue, 13 Jun 2023 14:02:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686690166; x=1689282166; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=5dPbiD5FvtZPiMFl2mjAeQiBWleO8CNG+MaXPQTAFbk=; b=qNtpDVn9FFOIUj5duvO1mO5aHmWjIZ86Vbk3bjelHQj2NK3nvHCovHiabJTJY51Die IH0F6SgSGXpLqGEQY4yKNVQspJ0LOSd3O2tpzDpI8mXBGhK01dorgVDhV/B89jcxbzu8 kPoGHjTVT9eVSLb/Ywb581Sl+voKqrvN/fvhKUBCG3j+hfQp0CaDCnPH27AKxY8Osn7G ZNyes4B430506eMJQIKfEG0U+VA7Q63mYRmZR1F1b/dHxb5hSd6hq0cC3vI/xDeMYSD/ KwrOe7tEbK0IMgjiqqbalVtn9IDD53VTP5JUKKPi1zyx5575T8kyACSuNM6TWgvT+yew WAUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686690166; x=1689282166; 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=5dPbiD5FvtZPiMFl2mjAeQiBWleO8CNG+MaXPQTAFbk=; b=ExsNvqqvMazIV1U7KbjuAnzLCL5tXh+jIVClA1NZIbXhyP0QtR/V+KMSMZ3qk5UtqW PXErSjfgidPy/77kUC36iMr/RK/xrpzzXMt04IErlGd8bCcMc5YzanrjIPvde5iauJE8 2gxZFJVUeupEt8isf3/aVSXeHZqsq4lH+GKwQ/YpYBkIkIGgGGi0IebhARJtm+Ldma10 /KzdKoaX+hZnBd1sCZRitwsPg6CLakfEidotc2DEU0+Mch6su+S+qzWkVWd8pV3tr+nF EaCLJTaugCuOeNAlUhsTaUlDuGIfCg7tltrs5BlWIm3hPFzUhrVLJr0fLfyOZc9alznL OKMQ== X-Gm-Message-State: AC+VfDyvmF+NOVLkpT6erNbKH9o764DQ7dZN4GU3scH2oU1ZHGos6czM VGMVe0JeeOxanh5zC7W8QsPmu7u68uG3SPhpIz6Lmz5c4PdZew== X-Google-Smtp-Source: ACHHUZ4CusHSSqvTGostDnzUEVtGgZpMWrT7DPq2+lzGx/qua2ZvRG5SpvYJ+6u0KBQKb2MkF5DQOUXLOAgs1tpZiWA= X-Received: by 2002:a4a:d68c:0:b0:55d:beb5:c789 with SMTP id i12-20020a4ad68c000000b0055dbeb5c789mr1823919oot.0.1686690165939; Tue, 13 Jun 2023 14:02:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 13 Jun 2023 23:02:34 +0200 Message-ID: To: Nicolas Grekas Cc: PHP Internals List Content-Type: multipart/alternative; boundary="0000000000002fe09605fe092817" Subject: Re: [PHP-DEV] [RFC] [Discussion] Deprecate functions with overloaded signatures From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000002fe09605fe092817 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Nicolas, On my side, I'd very much prefer keeping the constructor of DatePeriod and > thus making it non-overloaded with this signature: > > public function __construct(DateTimeInterface $start, DateInterval > $interval, DateTimeInterface|int $end, int $options =3D 0) {} > > That'd help a lot with the migration/BC path and this signature also just > makes sense. > I completely agree with this (more so since this used to be the original proposal), so I'll ask Derick again about his stance on this. Unrelated: I don't think adding "ReflectionMethod::createFromMethodName" is > useful. Using explode is just fine for those that need this style. And > since this is the recommended migration path, better not give a reason to > change twice the code. > I don't really mind removing ReflectionMethod::createFromMethodName, so if anyone has a use-case which heavily relies on creating the reflection method from a callable name ("Class::method" format), now is the time to speak up for this method. As far as I see the relevant impact analysis file ( https://gist.github.com/kocsismate/b457f8fef074039b58fbee9121d05e92), Laminas, Symfony and Nette DI would also be impacted by the removal. I don't think that it causes a big problem to explode the string instead, but I'm wondering if performance sensitive code may be negatively affected (?). Thank you, Nicolas, for your insights! M=C3=A1t=C3=A9 --0000000000002fe09605fe092817--