Skip to content

Commit 8868928

Browse files
committed
add strict nullable types to ObjectBuilder (+AggregateColumnRelationBehavior)
1 parent f43bd69 commit 8868928

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Propel/Generator/Builder/Om/ObjectBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,9 @@ public function addTemporalAccessorOpen(string &$script, Column $column): void
982982
}
983983

984984
$script .= "
985-
" . $visibility . " function get$cfc(\$format = " . $format;
985+
" . $visibility . " function get$cfc(?string \$format = " . $format;
986986
if ($column->isLazyLoad()) {
987-
$script .= ', $con = null';
987+
$script .= ', ?ConnectionInterface $con = null';
988988
}
989989
$script .= ")
990990
{";
@@ -1158,7 +1158,7 @@ public function addJsonAccessorOpen(string &$script, Column $column): void
11581158
$visibility = $column->getAccessorVisibility();
11591159

11601160
$script .= "
1161-
" . $visibility . " function get$cfc(\$asArray = true";
1161+
" . $visibility . " function get$cfc(bool \$asArray = true";
11621162
if ($column->isLazyLoad()) {
11631163
$script .= ', ?ConnectionInterface $con = null';
11641164
}
@@ -6823,7 +6823,7 @@ protected function addSaveOpen(string &$script): void
68236823
$reloadOnUpdate = $table->isReloadOnUpdate();
68246824
$reloadOnInsert = $table->isReloadOnInsert();
68256825
$script .= "
6826-
public function save(?ConnectionInterface \$con = null" . ($reloadOnUpdate || $reloadOnInsert ? ', $skipReload = false' : '') . "): int
6826+
public function save(?ConnectionInterface \$con = null" . ($reloadOnUpdate || $reloadOnInsert ? ', bool $skipReload = false' : '') . "): int
68276827
{";
68286828
}
68296829

0 commit comments

Comments
 (0)