승격된 프로퍼티 사용은 PHP 8.0부터 가능합니다. 이전 PHP 버전에서 파싱 오류를 생성합니다.
자세한 내용은 Constructor Property Promotion (php.net)(을)를 참고하세요.