swoft-cli
swoft-cli copied to clipboard
[Semantical Error] Annotation was never imported
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?

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
#build swoftcli.phar version: 0.1.6 (maybe others better)
#git branch: master, commited: bfd4cfb6dd40bb4a2c65ee7e7e5223dec253e9a4
#compatibility:It works,But some errors
