Open Ahmard opened 3 years ago
I am using PHP 8.0
Did this issue solved? I got the same issue.
This issue is with php 8. Switching to PHP7.4 resolves this issue.
same issue: Doctrine\Common\Annotations\AnnotationException(code:0) [Semantical Error] The annotation "@AnnotationParser" in class Swoft\Validator\Annotation\Parser\AfterDateParser was never imported env: php8.1.7 SERVER INFORMATION(v2.0.11)
solution: git clone https://github.com/swoft-cloud/swoft-cli cd swoft-cli composer install
php -d phar.readonly=0 ./bin/swoftcli phar:pack -o=swoftcli.phar
Doctrine\Common\Annotations\AnnotationException(code:0) [Semantical Error] The annotation "@AnnotationParser" in class Swoft\Validator\Annotation\Parser\AfterDateParser was never imported. Did you maybe forget to add a "use" statement for this annotation?