# NGBVD v3 package:discover hotfix

## Issue fixed
`composer dump-autoload` failed during `php artisan package:discover` with error code 255.

The generated revamp package contained PHP 7.4 arrow functions in `app/Services/Api/ExternalIncidentService.php`. The original NGBVD project supports PHP `^7.3|^8.0`, and WAMP installations commonly run PHP 7.3/7.4 variants. If the active PHP version is 7.3, arrow functions cause a fatal parse error during optimized autoload/package discovery.

## Change made
Replaced arrow functions with PHP 7.3-compatible anonymous closures.

## After applying
Run:

```bash
composer dump-autoload
php artisan optimize:clear
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan cache:clear
```

If it still fails, run:

```bash
php -v
php artisan package:discover -vvv
```

and inspect:

```text
storage/logs/laravel.log
```
