PHP 7.1에서 오류를 유발하는 Context 클래스의 $this 사용 제거#1954
Merged
1 commit merged intoSep 5, 2016
Merged
Conversation
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PHP 7.1 RC1에서 XE를 실행하면 아래와 같은 오류가 발생합니다.
예전에는
static으로 호출한 메소드에서도$this를 일반 변수처럼 사용할 수 있었지만, 이제는$this라고 쓰기만 해도 치명적인 오류가 발생하도록 바뀌었네요.참고: https://secure.php.net/manual/en/migration71.other-changes.php (Inconsistency Fixes to $this)
이 문제를 해결하기 위해 Context 클래스에서 아래와 같은 코드가 등장하는 51군데를
모두 아래와 같이 변경합니다.