Skip to content

PHP 8.1: PHP Deprecated: parse_str() #149

@hasanparasteh

Description

@hasanparasteh

When I run my ReactPHP project using PHP 8.1 I get the below warnings...please consider adding more strong support in the new version of PHP. I know PHP recently upgraded to 8.1 and I appreciate your hard works on this great project!

Using this function without the result parameter is highly DISCOURAGED and DEPRECATED as of PHP 7.2.
Link: PHP documentation on parse_str

Composer.json

"react/mysql": "^0.5.5"

Code

$databaseFactory = new Factory($loop);
$databaseFactory->createLazyConnection($databaseUri['appManager']);

Console

PHP Deprecated:  parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in vendor/react/mysql/src/Io/LazyConnection.php on line 37

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions