Skip to content

Commit de2d84c

Browse files
Merge pull request #1863 from creative-commoners/pulls/3/php84
API Explicity mark nullable parameters for PHP 8.4
2 parents 176b051 + f5aebe5 commit de2d84c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

code/FormSchemaController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function schema(HTTPRequest $request): HTTPResponse
111111
* @param ValidationResult $errors Required for 'error' response
112112
* @param array $extraData Any extra data to be merged with the schema response
113113
*/
114-
public function getSchemaResponse(string $schemaID, ?Form $form = null, ValidationResult $errors = null, array $extraData = []): HTTPResponse
114+
public function getSchemaResponse(string $schemaID, ?Form $form = null, ?ValidationResult $errors = null, array $extraData = []): HTTPResponse
115115
{
116116
$parts = $this->getRequest()->getHeader(static::SCHEMA_HEADER);
117117
$data = $this

code/Forms/LinkFormFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class LinkFormFactory implements FormFactory
2727
* @param array $context
2828
* @return Form
2929
*/
30-
public function getForm(RequestHandler $controller = null, $name = FormFactory::DEFAULT_NAME, $context = [])
30+
public function getForm(?RequestHandler $controller = null, $name = FormFactory::DEFAULT_NAME, $context = [])
3131
{
3232
// Validate context
3333
foreach ($this->getRequiredContext() as $required) {

0 commit comments

Comments
 (0)