Skip to content

Deprecated warning on PHP 8.1 running wp core version  #219

@StanvanHoorn

Description

@StanvanHoorn

When running wp core version a Deprecation error is thrown by PHP with the following message:

Deprecated: file_get_contents(): Passing null to parameter #2 ($use_include_path) of type bool is deprecated in phar:///opt/wp-cli/wp-cli.phar/vendor/wp-cli/core-command/src/Core_Command.php on line 929

I found the following line, that seems to cause the error:

$version_content = file_get_contents( $versions_path, null, null, 6, 2048 );

Can anyone take a look at this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions