Skip to content

PHP 8.4에서 nullable 파라메터 관련 deprecated 표현 수정 요청 #20

@Waterticket

Description

@Waterticket

PHP 8.4부터 본 라이브러리 사용시 Deprecated: Implicitly marking parameter $variable as nullable is deprecated, the explicit nullable type must be used instead 메세지가 발생합니다.

대표적인 문제의 함수는 아래와 같습니다.

public function send($messages, DateTime $scheduledDateTime = null): SendResponse

이슈를 해결하기 위해 파라메터에 null이 들어갈 수 있도록 아래와 같이 수정되어야합니다.

public function send($messages, ?DateTime $scheduledDateTime = null): SendResponse 

다만 해당 표현은 PHP 7.1부터 사용가능하기에, 최소 요구사항을 올려주셔야 할 것 같습니다.

제가 확인한 바로는 SolapiMessageService 파일에 동일한 표현이 많았고, 특성상 다른 파일에도 산재할 것으로 예상되는 바, 전반적으로 확인 후 수정 부탁드립니다.

감사합니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions