@@ -377,7 +377,7 @@ protected function addConstructorOpen(string &$script): void
377
377
{
378
378
$ table = $ this ->getTable ();
379
379
$ script .= "
380
- public function __construct( \$dbName = ' " . $ table ->getDatabase ()->getName () . "', \$modelName = ' " . addslashes ($ this ->getNewStubObjectBuilder ($ table )->getFullyQualifiedClassName ()) . "', \$modelAlias = null)
380
+ public function __construct( \$dbName = ' " . $ table ->getDatabase ()->getName () . "', \$modelName = ' " . addslashes ($ this ->getNewStubObjectBuilder ($ table )->getFullyQualifiedClassName ()) . "', ?string \$modelAlias = null)
381
381
{ " ;
382
382
}
383
383
@@ -1190,7 +1190,7 @@ protected function addFilterByArrayCol(string &$script, Column $col): void
1190
1190
*
1191
1191
* @return \$this The current query, for fluid interface
1192
1192
*/
1193
- public function filterBy $ singularPhpName( \$$ variableName = null, ?string \$comparison = null)
1193
+ public function filterBy $ singularPhpName(mixed \$$ variableName = null, ?string \$comparison = null)
1194
1194
{
1195
1195
if (null === \$comparison || \$comparison == Criteria::CONTAINS_ALL) {
1196
1196
if (is_scalar( \$$ variableName)) {
@@ -1240,7 +1240,7 @@ protected function addFilterBySetCol(string &$script, Column $col): void
1240
1240
*
1241
1241
* @return \$this The current query, for fluid interface
1242
1242
*/
1243
- public function filterBy $ singularPhpName( \$$ variableName = null, ?string \$comparison = null)
1243
+ public function filterBy $ singularPhpName(mixed \$$ variableName = null, ?string \$comparison = null)
1244
1244
{
1245
1245
\$this->filterBy $ colPhpName( \$$ variableName, \$comparison);
1246
1246
@@ -1567,7 +1567,7 @@ protected function addUseRelatedQuery(string &$script, Table $fkTable, string $q
1567
1567
*
1568
1568
* @return $ queryClass A secondary query class using the current class as primary query
1569
1569
*/
1570
- public function use " . $ relationName . 'Query($relationAlias = null, $joinType = ' . $ joinType . ")
1570
+ public function use " . $ relationName . 'Query(?string $relationAlias = null, string $joinType = ' . $ joinType . ")
1571
1571
{
1572
1572
return \$this
1573
1573
->join " . $ relationName . "( \$relationAlias, \$joinType)
0 commit comments