(Grav GitSync) Automatic Commit from smokephil

This commit is contained in:
smokephil 2025-01-17 09:13:21 +01:00 committed by GitSync
parent 88e07926d9
commit 9d9feba04b
144 changed files with 7311 additions and 5467 deletions

View file

@ -153,7 +153,7 @@ abstract class AbstractController implements RequestHandlerInterface
* @param mixed $default
* @return mixed
*/
public function getPost(string $name = null, $default = null)
public function getPost(?string $name = null, $default = null)
{
$body = $this->request->getParsedBody();
@ -176,7 +176,7 @@ abstract class AbstractController implements RequestHandlerInterface
* @param string|null $type
* @return FlexForm
*/
public function getForm(string $type = null): FlexFormInterface
public function getForm(?string $type = null): FlexFormInterface
{
$object = $this->getObject();
if (!$object) {