Skip to content

Deprecation Notice: Method ReflectionProperty::setAccessible() is deprecated since 8.5 #12497

@matbech

Description

@matbech

I get the following notice:
Deprecation Notice: Method ReflectionProperty::setAccessible() is deprecated since 8.5, as it has no effect in phar://C:/composer.phar/src/Composer/Repository/FilesystemRepository.php:180

Per documentation, setAccessible has no effect:
Note: As of PHP 8.1.0, calling this method has no effect; all properties are accessible by default.
Reference: https://www.php.net/manual/en/reflectionproperty.setaccessible.php

All the setAccessible(true) calls need to be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions