Skip to content

Errors when running on PHP8 #225

@WouterSioen

Description

@WouterSioen

When running the project (throuh the infection package) on PHP8, I get this error:

PHP Warning:  "resource" is not a supported builtin type and will be interp  
reted as a class name. Write "\Safe\resource" or import the class with "use  
" to suppress this warning

It looks like the resource typehint in the generated/sockets.php file in the
socket_wsaprotocol_info_export method is not supported in PHP8 and should
thus be removed to make this library and infection compatible with PHP8.

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