Skip to content

Increase minimum php to 8.1 and remove deprecated function call - #1

Open
runar-stefna wants to merge 1 commit into
circli:masterfrom
runar-stefna:deprecation-warning
Open

Increase minimum php to 8.1 and remove deprecated function call#1
runar-stefna wants to merge 1 commit into
circli:masterfrom
runar-stefna:deprecation-warning

Conversation

@runar-stefna

Copy link
Copy Markdown

The motivation for this change was to get rid of deprecation warnings when running projects with PHP 8.5.

Since PHP 8.1, Reflection automatically grants access to private and protected properties and methods when using getValue(), setValue(), or invoke(). Because setAccessible() became a no-op (no-operation) in 8.1, PHP 8.5 introduced this deprecation warning to encourage removing the redundant code.

Since PHP 8.1, Reflection automatically grants access to private and
protected properties and methods when using getValue(), setValue(), or
invoke(). Because setAccessible() became a no-op (no-operation) in 8.1,
PHP 8.5 introduced this deprecation warning to encourage removing the
redundant code.
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