Skip to content

Commit

Permalink
Set AllowDynamicProperties on TypedElement and UnaddressableTypedElement
Browse files Browse the repository at this point in the history
Fixes #4776.
  • Loading branch information
Krinkle committed Sep 23, 2023
1 parent 03f0b78 commit 5a6cced
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Phan/Language/Element/TypedElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @phan-file-suppress PhanPluginDescriptionlessCommentOnPublicMethod
* @phan-file-suppress PhanPluginNoCommentOnPublicMethod TODO: Add comments
*/
#[\AllowDynamicProperties]
abstract class TypedElement implements TypedElementInterface
{
/**
Expand Down
1 change: 1 addition & 0 deletions src/Phan/Language/Element/UnaddressableTypedElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @phan-file-suppress PhanPluginDescriptionlessCommentOnPublicMethod
* @suppress PhanRedefinedInheritedInterface this uses a polyfill for Stringable
*/
#[\AllowDynamicProperties]
abstract class UnaddressableTypedElement implements Stringable
{
/**
Expand Down

0 comments on commit 5a6cced

Please sign in to comment.