dseguy on Nostr: 1) it is possible to call a method 'as', because relaxed keywords #PHP methods 2) it ...
Published at
2024-03-14 20:56:02Event JSON
{
"id": "3965f2dbd24cd41c17ff3beb4ac8a4262f543e9da384181ddfa7be6be0c41feb",
"pubkey": "abe348c495b2e4ec2169d298ff03fde20905877ab157779d93cec33a8e501198",
"created_at": 1710449762,
"kind": 1,
"tags": [
[
"t",
"php"
],
[
"t",
"phptip"
],
[
"t",
"phptrick"
],
[
"proxy",
"https://phpc.social/users/dseguy/statuses/112096035654622138",
"activitypub"
]
],
"content": "1) it is possible to call a method 'as', because relaxed keywords #PHP methods\n\n2) it is possible to import a method from a trait, and alias it to itself.\n\nIt is possible to write 'as as as ' in #PHP and make sense.\n\n#phptip #phptrick \n\nhttps://php-tips.readthedocs.io/en/latest/tips/as-as-as.html\n\nhttps://media.phpc.social/media_attachments/files/112/095/938/275/081/018/original/386d9792d8468e5e.png",
"sig": "8518bebdd8e4a197e10af1f0fcc7d764a8dce22367d10ba1c01709b0fc704939b20a2996212385d0ed6d816f3cc6d90d8183f449ccb429d8eb5ecdac351bad59"
}