Skip to content

Commit bde7ea1

Browse files
committed
fix: Implicitly marking parameter as nullable
1 parent e2268f5 commit bde7ea1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webfiori/database/ForeignKey.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ class ForeignKey {
117117
*/
118118
public function __construct(
119119
string $name = 'key_name',
120-
Table $ownerTable = null,
121-
Table $sourceTable = null,
120+
?Table $ownerTable = null,
121+
?Table $sourceTable = null,
122122
array $cols = []) {
123123
$this->sourceCols = [];
124124
$this->ownerCols = [];

webfiori/database/SelectExpression.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(Table $table) {
8787
*
8888
* @since 1.0
8989
*/
90-
public function addColumn(string $colKey, array $options = null) {
90+
public function addColumn(string $colKey, ?array $options = null) {
9191
if ($colKey != '*') {
9292
$colKey = str_replace('_', '-', $colKey);
9393
$colObj = $this->getTable()->getColByKey($colKey);

0 commit comments

Comments
 (0)