Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hook trait usage #523

Closed
mvorisek opened this issue Mar 14, 2020 · 4 comments · Fixed by #525
Closed

Fix hook trait usage #523

mvorisek opened this issue Mar 14, 2020 · 4 comments · Fixed by #525

Comments

@mvorisek
Copy link
Member

mvorisek commented Mar 14, 2020

Fix these once atk4/core#133 is merged:

Regex:

(?<!  \$this)(?<!  \$m)->(?:onHook|hook)\s*\(

Code to be fixed:

@mvorisek
Copy link
Member Author

Please check the questions above and close if no actions are needed.

@mvorisek mvorisek reopened this Mar 21, 2020
@romaninsh
Copy link
Member

@mvorisek to answer your question - is_object check allow model substitution after loading:

https://github.com/atk4/data/pull/361/files#diff-83e9e6704bdede75a707d11294b67376R1035

@mvorisek
Copy link
Member Author

mvorisek commented May 1, 2020

@mvorisek to answer your question - is_object check allow model substitution after loading:

https://github.com/atk4/data/pull/361/files#diff-83e9e6704bdede75a707d11294b67376R1035

@romaninsh When is it code intended to be reached? This code pattern seems to be used only here. See also my PR atk4/core#187 which solves the hook break detection.

@mvorisek mvorisek removed their assignment Jun 19, 2020
@mvorisek
Copy link
Member Author

checked, probably no action is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants