cancel
Showing results for 
Search instead for 
Did you mean: 

Doctrine\\Common\\Annotations\\AnnotationException: [Semantical Error]

Everything runs fine with PHP 7.4 but PHP 8 seems problematic. Here's my composer.json:

{
"require": {
"php": ">=5.6",
"ext-curl": "*",
"authorizenet/authorizenet": "2.0.2"
},
"require-dev": {
"phpcompatibility/php-compatibility": "*"
},
"prefer-stable" : true,
"scripts": {
"post-install-cmd": "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility",
"post-update-cmd" : "\"vendor/bin/phpcs\" --config-set installed_paths vendor/phpcompatibility/php-compatibility"
}
}

After upgrading my environment to PHP 8, I get the following error:

Doctrine\\Common\\Annotations\\AnnotationException: [Semantical Error] The annotation “@Type” in property net\\authorize\\util\\SensitiveDataConfigType::$sensitiveTags was never imported. Did you maybe forget to add a ‘use’ statement for this annotation? in Doctrine\\Common\\Annotations\\AnnotationException::semanticalError() 54 /mnt/www/html/ucsfp1sand/docroot/sites/controller.ucsf.edu/modules/custom/authorizenet_payroll_payments/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php

cowebpost
Member
1 REPLY 1
cowebpost
Member