Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Annontation #1

Open
richardsjoqvist opened this issue Feb 20, 2019 · 2 comments
Open

Problem with Annontation #1

richardsjoqvist opened this issue Feb 20, 2019 · 2 comments

Comments

@richardsjoqvist
Copy link

Using your example code (on https://github.com/andyftw/ssllabs-php) I get the following error on PHP 7.3:
/var/www/isimo/vendor/andyftw/ssllabs-php/src/Request.php, Line 74:
[Semantical Error] The annotation "@jms\Serializer\Annotation\AccessType" in class Andyftw\SSLLabs\Model\Info does not exist, or could not be auto-loaded.

It seems there may be a few other threads with the same error if that helps:
schmittjoh/serializer#855
symfony/symfony#25555

There is a solution on stack, which unfortunately uses deprecated methods:
https://stackoverflow.com/questions/14629137/jmsserializer-stand-alone-annotation-does-not-exist-or-cannot-be-auto-loaded

Sorry, but I do not have the time to make a more in-depth analysis or try to fix it and create a pr, hope you can find out what the problem is.

@JoseApRJunior
Copy link

No description provided.

@JoseApRJunior
Copy link

// autoload.php @generated by Composer

use Doctrine\Common\Annotations\AnnotationRegistry;

require_once DIR . '/composer' . '/autoload_real.php';

$loader = ComposerAutoloaderInitca4a2a99cd6168a02a7592b69bfae98c::getLoader();

AnnotationRegistry::registerLoader([$loader, 'loadClass']);

return $loader;

altera o autoload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants