Let the cream cheese soften at room temperature for easier stirring, or microwave it for 20–30 seconds.
Roughly chop the drained artichoke hearts and grate the Parmesan if not pre-grated.
Heat the olive oil in a large skillet over medium heat until shimmering.
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 whisk or 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, cover the skillet, and cook for 5 minutes so the spinach wilts and the gnocchi heats through.
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.