Skip to content

Commit f1aee8e

Browse files
committed
Typehint format date/time/timestamp getter method
1 parent 4e38948 commit f1aee8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/vendor/propel-generator/classes/propel/engine/builder/om/php5/PHP5BasicObjectBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,12 @@ protected function addTemporalAccessor(string &$script, Column $col): void
391391
/**
392392
* Get the [optionally formatted] [$clo] column value.
393393
* ".$col->getDescription()."
394-
* @param string \$format The date/time format string (either date()-style or strftime()-style).
394+
* @param string|null \$format The date/time format string (either date()-style or strftime()-style).
395395
* If format is NULL, then the integer unix timestamp will be returned.
396396
* @return false|int|string|null Formatted date/time value as string or integer unix timestamp (if format is NULL).
397397
* @throws PropelException - if unable to convert the date/time to timestamp.
398398
*/
399-
public function get$cfc(\$format = ".var_export($defaultfmt, true);
399+
public function get$cfc(?string \$format = ".var_export($defaultfmt, true);
400400
if ($col->isLazyLoad()) {
401401
$script .= ", Connection \$connection = null";
402402
}

0 commit comments

Comments
 (0)