Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Traits/DatabaseSchemaTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait DatabaseSchemaTestTrait
*
* @return void
*/
protected function setUpDatabase(string $schemaFile = null): void
protected function setUpDatabase(?string $schemaFile = null): void
{
if (isset($schemaFile)) {
$this->schemaFile = $schemaFile;
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/DatabaseTableTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function assertTableRow(
*
* @return array Row
*/
protected function getTableRowById(string $table, int $id, array $fields = null): array
protected function getTableRowById(string $table, int $id, ?array $fields = null): array
{
$sql = sprintf('SELECT * FROM `%s` WHERE `id` = :id', $table);
$statement = $this->createPreparedStatement($sql);
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HttpJsonTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait HttpJsonTestTrait
*
* @return ServerRequestInterface
*/
protected function createJsonRequest(string $method, $uri, array $data = null): ServerRequestInterface
protected function createJsonRequest(string $method, $uri, ?array $data = null): ServerRequestInterface
{
$request = $this->createRequest($method, $uri);

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/HttpTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function createRequest(string $method, $uri, array $serverParams = [])
*
* @return ServerRequestInterface The request
*/
protected function createFormRequest(string $method, $uri, array $data = null): ServerRequestInterface
protected function createFormRequest(string $method, $uri, ?array $data = null): ServerRequestInterface
{
$request = $this->createRequest($method, $uri);

Expand Down