Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122396 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id C94A61ADA70 for ; Fri, 16 Feb 2024 15:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1708095600; bh=nRs4M7zOol49bRZJoWqfgM8Nx4qEEXO/jEi2tbmpKNM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CLfobclyj4+/ga29muv+VI0ol+yowgI0cxg4pdLg5e1rH39IFfU+q/1qh06d6QiVS qc6BYPIK5jjNICBc9hERnZt0JIcGFYvoLKZITm2CgAjAVdZ2nVRbtUfZ5mvyDbzG71 ZNACB6S8kxlkBF267jpg+9YVxnJroshegwZta6tFKJP0vCr39iGOazDyMgEC6qgdo8 vQk/+rE138Nj2lu4Qsgpam3Bgmur5c4uWe6tKmRGg8G1DUR6NyM9IEKgXyRrWT+dyA kCWHV/jqSOurfTwcW1Y81i1hsSe7jThLmsr8UdzO4iyOybGnQHPS4xVuWqkfaC3GCj NsLaBsg2gUggQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5462F183E1F for ; Fri, 16 Feb 2024 07:00:00 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 16 Feb 2024 07:00:00 -0800 (PST) Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-55ad2a47b7aso2999405a12.3 for ; Fri, 16 Feb 2024 06:59:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708095597; x=1708700397; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nRs4M7zOol49bRZJoWqfgM8Nx4qEEXO/jEi2tbmpKNM=; b=W864JK7fPEliVc2NajQvtrYb4OJ709wHL4VxiMqDXhws1mHxvIGHFWbxZFoVWHk+Kn TyTnjphxi9/UlOl0wZsk11GFX+AQBP4r9JMwto47gcmBLny36gMQr8exBQ3/ErMvT/GP Up6qSsdyqo0Z2Rc5Tze8qLTAVERObTlhNJKoF6tYG9MX5Ve3V5zv3IoQf4jZ1wkjxY55 cZ9VLEZWzBfXmvYCnDcKEQzErsiheInGb9EbZD4sRcCo7MHm7RooKP2/VktpeRczzKF7 3s3iKmjp1MYmyQU62yi7f0dVn0A8LBxpiA87TrOLXAZ6rkyT4aAxLe929jtASjd7JNs/ H6hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708095597; x=1708700397; 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=nRs4M7zOol49bRZJoWqfgM8Nx4qEEXO/jEi2tbmpKNM=; b=jxBCI8Qn9Y8S9pZw5nVYBZaTY4T9oFRo9ykWA6JXqzTf3DlqlD9l269NS7o3TkHqMs HFikSYzqYxLA8K41o/iNwTWoLpf/uUi+xUEfAZc8aSfaoR6Xrw4ItSqZ+JosZbyCeS9C /INVp3KI0fD26xqGG75ck1NyJDOnPAONbBQ2NtYq+ZvVZcx7V4MNNtsQYJHj//6X686g lGSgkLh325BlaiW3WRl1Eoy05wh2ghV7d02nFKxQfwtxamN2IAqdWmlRN1sRos4YrL4T IcniG+baFQ+yvDtNUf8kx3jmDclKU/fohG+BDw5nDlkWeqyiI3NaleC7KJKupUaGxfvO x9eQ== X-Forwarded-Encrypted: i=1; AJvYcCXeh3zB5WF3LBOW1gjcGrOiJhAAIvB7Cik7yuxABWjSTXjWQWdpEeNw0bd8sf9JOl2opnh8oQYM2Cf9/oLmHu4+Zvwkzw6yGA== X-Gm-Message-State: AOJu0YzMNUPdoeT9tQ7fRUELND0wQIb3hjixoSt/lylExzEFJKdNSmnh OOjhxkwQjo4iQ8LNZpqYJdCmcJvV7Bz8ajujRtTLuiDd1H0gX8suRVbFsNMYU9ZLrF4uxz9+Zmb vfpH7KTehk+SQGezfeaFDz/TNyUY= X-Google-Smtp-Source: AGHT+IFTq/oSYWfP45oENltnKUmXh0pw3TChlmdqLZiHGw8uyMhpt6Ox/WZIYrWxUN75iw7dXhy5IfbsOsHXVYARKq0= X-Received: by 2002:a05:6402:17c4:b0:563:ccd1:26bd with SMTP id s4-20020a05640217c400b00563ccd126bdmr2524258edy.2.1708095596755; Fri, 16 Feb 2024 06:59:56 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 16 Feb 2024 15:59:45 +0100 Message-ID: Subject: Re: [PHP-DEV] [RFC] Deprecate implicitly nullable parameter type To: Nicolas Grekas Cc: "Gina P. Banyard" , PHP internals Content-Type: multipart/alternative; boundary="0000000000004982b9061180ff2a" From: kocsismate90@gmail.com (=?UTF-8?B?TcOhdMOpIEtvY3Npcw==?=) --0000000000004982b9061180ff2a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Nicolas, Thanks for your input and proactive measures! I've just finished the analysis you asked for: - code: https://gist.github.com/kocsismate/c0d10c820606dfe297f09374aa634df5 - results: https://gist.github.com/kocsismate/cf3bdfbf35eb10224ee5ecd29b39656b TLDR: there are 880 packages out of 2000 which use implicit nullable parameter types. We will mention this fact in the RFC soon, as well as the need for additionally taking care of non-optional arguments with default values. Regards, M=C3=A1t=C3=A9 --0000000000004982b9061180ff2a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

Thanks for your input and p= roactive measures! I've just finished the analysis
you asked = for:

TLDR:= there are 880 packages out of 2000 which use implicit nullable parameter t= ypes.
We will mention this fact in the RFC soon, as well as the n= eed for additionally taking
care of non-optional arguments with d= efault values.

Regards,
M=C3=A1t=C3=A9
--0000000000004982b9061180ff2a--