Just when Roberto Hernandez appeared to squeeze all the suspense out of the Rays’ biggest remaining decision of spring training, he may have left the clubhouse door ajar for Jeff Niemann.

The 32-year-old right-hander was cruising along Tuesday with four shutout innings against the Phillies in his final Grapefruit League outing before Hernandez fell apart in a 10-1 setback that marked Tampa Bay’s sixth loss in seven games.

Freddy Galvis capped a four-run fifth inning with a two-run homer and Kevin Frandsen lined a two-run double as Philadelphia added five runs in the sixth against Hernandez, who yielded 11 hits and didn’t register a strikeout while facing 29 batters.

“I didn’t change anything,’’ said Hernandez, whose spring ERA vaulted from 3.00 to 5.33 after his seventh start. “I don’t know what happened. I didn’t try to overthrow.’’

Niemann, competing against Hernandez for the No. 5 spot in the rotation, faces Toronto today in his final start of the spring.

“We’ll wait until (today) to get that all done,’’ Rays manager Joe Maddon said of the decision. “I thought Roberto threw the ball well actually today. A lot of the damage was done on the ground. I thought he had good stuff. Otherwise, we didn’t hit the ball and they did.”