Skip to content

Compatibility issue with Magento #221

@hugofintecture

Description

@hugofintecture

@nicolas-grekas it seems recent changes reintroduced this issue with Magento:

[2023-03-27T14:28:49.214616+00:00] report.DEBUG: The class "Phalcon\HttpMessageRequest" for the generation of "Phalcon\HttpMessageRequestFactory" does not exist. {"exception":"[object] (RuntimeException(code: 0): The class "Phalcon Http Message Request" for the generation of "Phalcon Http Message Request Factory" does not exist. at /app/vendor/magento/framework/Code/Generator.php:223)"} []
[2023-03-27T14:28:49.214928+00:00] report.DEBUG: The "Phalcon\HttpMessage\Stream" class for the generation of "Phalcon\HttpMessage\StreamFactory" does not exist. {"exception":"[object] (RuntimeException(code: 0): The class "Phalcon Http Message" for the generation of "Phalcon Http Message" does not exist. at /app/vendor/magento/framework/Code/Generator.php:223)"} []

Could be related to this path you added?
\Phalcon\Http\Message\RequestFactory::class

Maybe it would be better to use a string there instead of the ::class syntax?

File src/Composer/Plugin.php line 239:

if (class_exists(\Phalcon\Http\Message\RequestFactory::class, false)) {
    $missingRequires[0]['psr/http-factory-implementation'] = [];
    $missingRequires[1]['psr/http-factory-implementation'] = [];
}

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions