Skip to content

Test anonymous class-related calls and usages #277

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

Merged
merged 4 commits into from
Dec 6, 2024

Conversation

spaze
Copy link
Owner

@spaze spaze commented Dec 6, 2024

The things were already detected and now there's a test for them as well. Anonymous classes are displayed as class@anonymous similar to what get_class(new class {}) would return.

  • Test disallowed constants on anonymous child classes
  • Test disallowed method calls on anonymous classes
  • Test anonymous class inheriting from a disallowed class

Ref #275

@spaze spaze self-assigned this Dec 6, 2024
@spaze spaze merged commit 02d0741 into main Dec 6, 2024
124 checks passed
@spaze spaze deleted the spaze/test-anonymous-class branch December 6, 2024 04:30
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.

1 participant