Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127628 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 lists.php.net (Postfix) with ESMTPS id 9EC0E1A00BC for ; Mon, 9 Jun 2025 02:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1749436708; bh=Rwns0W0IWUt/dzwtcNzY2GuY4OoQbZuB9A7sp3sf4ao=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From; b=fTPCD8YrqeJqo9gD+ahWTQovj1IvyvfaMIft9TjWhGbYI0l3EYqwcXVy/NKMA/n6n C02eYAqU3hRp1XjV/YNX6UM8a0pir94TKpXwdwHTrbI75QEIKN6a6nvPpr8Wf/wYWi 5RuAqt5Hg0LLHazHqKMoAw0qMgqNIXkspjaSQ2jU2NP8FKSyIj45A76ry32awzgHEo MIRi6fZMrYIXyPblxGK8ivyoxo4KwVPwWzn1yHYSk0epdjLE0Rr8d+pWQhFvsvCrxF 1SOoMEuutJU4l0z+ydiNy57j6Oxe9alKef4z6zysuWG4GGXOKb3CwK7oUhah9RSMag Em3i0iY4OMTqQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B19D018004D for ; Mon, 9 Jun 2025 02:38:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: *** X-Spam-Status: No, score=3.9 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 ; Mon, 9 Jun 2025 02:38:27 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-235248ba788so4478605ad.0 for ; Sun, 08 Jun 2025 19:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749436828; x=1750041628; darn=lists.php.net; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=Rwns0W0IWUt/dzwtcNzY2GuY4OoQbZuB9A7sp3sf4ao=; b=BMM29pTu/nDKy544IQEl2TH4uONI3BYDaha6vg0wtRnsgLrcUuSx4ZwIW8k4diObz7 mSeFopQUgxG1uosBjSsVW7GjhOUCv5VzGQNPGelIfCXP958fsJixBJYxX9HMnniG7uDX pGir7eBi3TZfitPfphZyiQzQ8H6tvgN0qL8iz3mfoHqZ0E33lo/4LszhZ30RS4qRt1kJ xGn7UVHOpzbMjjHqpqznGFYqBhgbBgD/VWgTCaO1FSytVOFGVXQXoCPugCmSdmZv9Z3Q J7q0Moq2KIyOWOBOkPF9RQwXHJDj4YSjobRPcfPudXJkl6cc7QQTMFnAvHxhbwYn4GK1 QqVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749436828; x=1750041628; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rwns0W0IWUt/dzwtcNzY2GuY4OoQbZuB9A7sp3sf4ao=; b=brOkzZUA92A/TfhkfVXis1ecqbPqAKDZAL5bRnbS03+MEqdAqIznIDrUZPLAEUh0OI TsbdcGC1g8JpSzhDw37pzllgXtSKfbwQemMimwXvIvfXWyBabEdxtNntTRTutp/m6MXy f9AveWe/bhZtea/8UFJQsCOTixJ/0ftaaUoz+5mkhRPU72FcVb0HV6xQUdrZL2T0GXaH jOCipzCqymV2HEkiEtqQ0Xal4r00EX2pADE9rsqhdoONkpNCJLvzolhGqAWQocnpm1Zp YSi5+ZlGU/Dzn2uCo6+EZqgYszY035hDrurz6hCzY8z5WBYgUzWUP/GlpitTNS2PuSco UW6w== X-Gm-Message-State: AOJu0Yw6dv/EeE/qfLn6O/in3vwD2sp4bh1g2GcCsdR5h806zIcp2CmJ BeKKoiIlZSWWKS6tLccnakRbi1aUM9fwhd9sIAz8Ds8Yst/mD6VBDfYdRlC/qz80 X-Gm-Gg: ASbGncvfm2Cu7/X3iAM+kAz21KC74MlLle7oXwOEJ+H+vhpIjp5+e0bl7lflLJ/24XX dNTQKuhUKxg0kM2bKfGHigaP2/uLNrhpdXH48f4BDOBJWJfbZ4IFuy56DjtnkAOmpuUgs/MoTCC En/Ir9jITt/Xk9j0b3B9QttFvUsdGrijMYaxpd9DpnlthS0/gU7Wt18hyFAHFMjhpGJMVKtQ55K e/CdH0QDkkOKeDc2OZ9cXnPWI7stpK95MFlQUt07nYuESh86u6xrz9XhHK5YKrxImTsKeLjP0vi XtTlR6SEsA2U/6uxPt7Aq+P3BnuUV0cBxisyrlwbIwKvKkyyV27WULDFizIKxC4bxC9cG2MfGdM SRlHavQ+e+Qtv6blt9mmECHkwnHCiSPQ= X-Google-Smtp-Source: AGHT+IFA74nUorDrJ/OLTw7o8k5xRSk0/P1WK9Y6ZEA4Xpvj8q7toemZzQBk9lfdLdQT2tjGAH2cng== X-Received: by 2002:a17:903:228e:b0:234:bfe3:c4b8 with SMTP id d9443c01a7336-23601d01a87mr57901245ad.2.1749436828253; Sun, 08 Jun 2025 19:40:28 -0700 (PDT) Received: from smtpclient.apple (gn01-186-192-101-233.sim.goiania.br. [186.192.101.233]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-23603092640sm44631705ad.54.2025.06.08.19.40.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Jun 2025 19:40:27 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (1.0) Subject: Re: [PHP-DEV] static properties in readonly classes Date: Sun, 8 Jun 2025 23:40:15 -0300 Message-ID: References: <30a02845-8bf5-421e-af1c-9cac3559ac1f@app.fastmail.com> Cc: internals@lists.php.net In-Reply-To: <30a02845-8bf5-421e-af1c-9cac3559ac1f@app.fastmail.com> To: Rob Landers X-Mailer: iPhone Mail (22F76) From: deleugyn@gmail.com (=?utf-8?Q?Marco_Aur=C3=A9lio_Deleu?=) > On 8 Jun 2025, at 15:12, Rob Landers wrote: >=20 > =EF=BB=BF > Hello internals, >=20 > It just feels weird to say that "static properties aren=E2=80=99t allowed,= but you can create static properties by embedding them in a method!" In oth= er words, it feels inconsistent. >=20 > =E2=80=94 Rob To me it feels like it=E2=80=99s working as intended. Similar to private pro= perties being accessible via reflection. The syntax is well designed for the= natural flow, but if you want to break the warranty seal go nuts.=