Ben Ramsey on Nostr: Is there an annotation I can add to a class stub that will tell #PhpStorm that a ...
Is there an annotation I can add to a class stub that will tell #PhpStorm that a readonly property is most certainly set in the constructor, so that PhpStorm quits complaining that “Typed property ‘foobar’ might be uninitialized?” #PHP
Published at
2023-08-04 03:53:45Event JSON
{
"id": "c96e0735439345ea9380b7fab36fce060626cd7d3cd7d7afff431f05cfe4ffae",
"pubkey": "e653eb60b2db5edf906d354c2825bf00a80dfab1b1766cd97805155e8fcc0db3",
"created_at": 1691121225,
"kind": 1,
"tags": [
[
"t",
"phpstorm"
],
[
"t",
"php"
],
[
"proxy",
"https://phpc.social/users/ramsey/statuses/110829320623851183",
"activitypub"
]
],
"content": "Is there an annotation I can add to a class stub that will tell #PhpStorm that a readonly property is most certainly set in the constructor, so that PhpStorm quits complaining that “Typed property ‘foobar’ might be uninitialized?” #PHP",
"sig": "3f584dabc40cbc35fcc1041838c041042a4aa7497cba347a0432f093b56b508e6a37039ec9f0d4f04d000de8973363e5c308fc64024ad3b91fe8354b79f37fce"
}