If needed, let the cream cheese soften at room temperature or microwave it 20–30 seconds until spreadable. Roughly chop the drained artichoke hearts and mince the garlic.
Heat the olive oil in a large skillet over medium heat.
Add the softened cream cheese to the skillet and stir until it begins to melt and loosen.
Add the minced garlic and cook, stirring, for about 1 minute until fragrant.
Pour in the broth and stir until the sauce is smooth and combined with the cream cheese.
Add the gnocchi and chopped artichokes to the skillet and stir to coat them in the sauce.
Top with the spinach (it may be piled on top); cover the skillet and cook for 5 minutes, until the gnocchi is heated through and the spinach has wilted.
Uncover, stir in the grated Parmesan, and cook uncovered for 2–3 more minutes until the sauce is creamy and the gnocchi is cooked through.
Season with salt and pepper to taste and serve immediately.