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

Check also attributes on methods when checking whether an attribute should be allowed in methods #304

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

spaze
Copy link
Owner

@spaze spaze commented Feb 12, 2025

A disallowed attribute used on a method (or on a function) is technically not in the method, so $scope->getFunction() returns null and thus no attributes could be returned. Now the original node is passed around and used to get the reflection to get the attributes.

Close #303

…hould be allowed in methods.

A disallowed attribute used on a method (or on a function) is technically not in the method, so `$scope->getFunction()` returns null and thus no attributes could be returned. Now the original node is passed around and used to get the reflection to get the attributes.

Close #303
@spaze spaze merged commit 50cedf9 into main Feb 12, 2025
124 checks passed
@spaze spaze deleted the spaze/attributes-on-methods branch February 12, 2025 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

disallowedAttributes together with allowInMethodsWithAttributes does not work as expected
1 participant