Heat olive oil in a large pot or Dutch oven over medium heat. Add diced onion, carrots, and celery. Cook 5–7 minutes until softened.
Add minced garlic, thyme, and basil. Cook 1 minute until fragrant.
Pour in chicken broth. Bring to a boil, then reduce to a simmer.
Add shredded chicken and gnocchi. Cook 5–7 minutes until gnocchi float and are tender.
Stir in spinach and heavy cream. Simmer gently 2–3 minutes until spinach wilts (do not boil).
Season with salt and pepper to taste. Serve hot, garnished with Parmesan cheese if desired.
