Skip to content

NGSTACK-1061 add abstract __get function - #45

Merged
pspanja merged 1 commit into
masterfrom
NGSTACK-1061-phpstan-settings-errors
Oct 13, 2026
Merged

pspanja merged 1 commit into
masterfrom
NGSTACK-1061-phpstan-settings-errors

Conversation

@amalija-ramljak

Copy link
Copy Markdown
Member

Defined __get on Settings abstract class

Issue example from phpstan

  161    Access to an undefined property Netgen\IbexaSiteApi\API\Settings::$rootLocationId.
         🪪  property.notFound

phpstan accepts the @property phpdoc when a __get is defined. The __get is already actually implemented on Settings, but was not defined on the abstract class.

@pspanja pspanja left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@pspanja
pspanja merged commit 0ea8026 into master Oct 13, 2026
2 checks passed
@pspanja
pspanja deleted the NGSTACK-1061-phpstan-settings-errors branch October 13, 2026 10:09
@pspanja

pspanja commented Oct 13, 2026

Copy link
Copy Markdown
Member

Thanks @amalija-ramljak!

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.

2 participants