Format Stack for psr-2