Re: [PHP-DEV] Re: 8.1 / Exception / Property Type / Backwardscompatbility

August 27, 2021 15:57 (Ben Ramsey)
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Nikita Popov wrote on 8/27/21 10:40:
>> If we don't want downstream users to redeclare the properties, why are=
>> they protected? >> >=20 > To allow downstreams users to write $this->line =3D 123. >=20
Got it. When I asked the question, I was thinking about passing it through the constructor, forgetting that line and file cannot be passed through the constructor. :-) Cheers, Ben --aVwRQMLSDt7ZyZk3Hg9zIhDGUZHlYrhWc--