Answers for "php 8 constructor promotion"

PHP
0

php 8 constructor promotion

public function __construct(
        public string $myProperty,
        public string $myOtherProperty,
    ) {}
Posted by: Guest on November-26-2020

Browse Popular Code Answers by Language