Skip to content

Does not comply with psr-4 autoloading standard #9

@hipwebdesign

Description

@hipwebdesign

Does not comply with psr-4 autoloading standard

Composer returns the following error: Deprecation Notice: Class RESO\RESO located in ./vendor/reso/reso-php/lib/Reso.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201

Warning indicates that package will not autoload in Composer v2.0, but I'm running v1.10.6 and I still can't get it to autoload.

Steps to Reproduce

  1. Install package composer require reso/reso-php
  2. Run composer dump-autoload --optimize
  3. Call require_once('/path/to/vendor/autoload.php');
  4. Returns Fatal error: Uncaught Error: Class 'RESO\RESO' not found

Expected behavior: Autoload package and make Classes accessible.

Actual behavior: Autoload runs without package and Classes are inaccessible.

Versions

RESO-WebAPI-Client-PHP v1.0
Composer V.1.10.6
PHP v7.3.11

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