junichi11 commented on issue #6461:
URL: https://github.com/apache/netbeans/issues/6461#issuecomment-1724811475
One question: What is the reason to set it to a property?
I think that it is not used as a property.
We can write like the following:
```php
class A
{
public function __construct(
private string $testA,
string $testB,
) {
echo $this->testA;
echo $testB;
}
}
$a = new A('testA', 'testB');
```
We should write like this if we don't use it as a property, I think...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists