whiteoctober/Pagerfanta — pull request #80 by Seldaek (2013-04-04 17:01:54+00:00)
Title: Remove unused property, fixes #79

So what happened is that you removed the `private $nbPages;`, which means the property wasn't declared anymore. Setting it to null declares a new public property (yay dynamic languages:p), and then twig sees that and reads it out instead of looking for a getter as it did before when it was private.