Fatal error: Uncaught TypeError: Return value of Source\Models\Gallery::posts() must be an instance of Source\Models\Post, null returned in /home/cagep529/prefeituras/pmad/source/Models/Gallery.php:31 Stack trace: #0 /home/cagep529/prefeituras/pmad/themes/siteweb/views/list-gallery.php(3): Source\Models\Gallery->posts() #1 /home/cagep529/prefeituras/pmad/vendor/league/plates/src/RenderTemplate/PhpRenderTemplate.php(27): include('/home/cagep529/...') #2 /home/cagep529/prefeituras/pmad/vendor/league/plates/src/RenderTemplate/PhpRenderTemplate.php(20): League\Plates\RenderTemplate\PhpRenderTemplate::League\Plates\RenderTemplate\{closure}('/home/cagep529/...', Array) #3 /home/cagep529/prefeituras/pmad/vendor/league/plates/src/Util/util.php(21): League\Plates\RenderTemplate\PhpRenderTemplate->League\Plates\RenderTemplate\{closure}() #4 /home/cagep529/prefeituras/pmad/vendor/league/plates/src/RenderTemplate/PhpRenderTemplate.php(21): League\Plates\Util\obWrap(Object(Closure)) #5 /home/cagep529/prefeituras/pmad/vendor/league/pla in /home/cagep529/prefeituras/pmad/source/Models/Gallery.php on line 31