I believe the proper approach should be to move `php artisan clear-compiled` from `pre-update-cmd` to `post-update-cmd`. This has been done 3 months ago in 4.0 branch (and released with v4.0.9).