Skip to content

NewDirectCallsToClone: bug fix - exclude class internal calls#910

Merged
wimg merged 1 commit intodevelopfrom
feature/directcalltoclone-bugfix
Oct 2, 2019
Merged

NewDirectCallsToClone: bug fix - exclude class internal calls#910
wimg merged 1 commit intodevelopfrom
feature/directcalltoclone-bugfix

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Sep 18, 2019

Direct calls to __clone() from within a class using self, static or parent were always allowed.

Ref: https://3v4l.org/BmmPT

Fixes #629 (comment)

Direct calls to `__clone()` from within a class using `self`, `static` or `parent` were always allowed.

Ref: https://3v4l.org/BmmPT
@jrfnl jrfnl added Type: bug PR: quick merge PR only contains relatively simple changes PR: ready for review labels Sep 18, 2019
@jrfnl jrfnl added this to the 9.x Next milestone Sep 18, 2019
@jrfnl jrfnl requested a review from wimg September 18, 2019 23:52
@wimg wimg merged commit 338bc6d into develop Oct 2, 2019
@wimg wimg deleted the feature/directcalltoclone-bugfix branch October 2, 2019 18:34
@jrfnl jrfnl removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 7.0: detect direct calls to __clone() magic method

2 participants