3232 * options?: array<int, mixed>
3333 * }
3434 *
35- * @phpstan-type logEntry array{
35+ * @phpstan-type logEntryType array{
3636 * start: float,
3737 * finish: ?float,
3838 * duration: ?float,
@@ -71,7 +71,7 @@ static public function factory(mixed ...$args) : callable
7171 /**
7272 * @var callable|null
7373 */
74- protected mixed /* callable */ $ queryLogger = null ;
74+ protected mixed $ queryLogger = null ;
7575
7676 public function __construct (protected PDO $ pdo )
7777 {
@@ -153,7 +153,7 @@ public function prepare(
153153 $ sth = PersistentLoggedStatement::new (
154154 $ sth ,
155155 function (array $ entry ) : void {
156- /** @var logEntry $entry */
156+ /** @var logEntryType $entry */
157157 $ this ->addLogEntry ($ entry );
158158 },
159159 $ this ->newLogEntry ()
@@ -310,7 +310,7 @@ public function fetchOne(
310310 array $ values = []
311311 ) : array |false
312312 {
313- $ sth = $ this ->perform ($ statement , $ values );
313+ $ sth = $ this ->perform ($ statement , $ values );
314314 /** @var array<array-key, mixed> $result */
315315 $ result = $ sth ->fetch (PDO ::FETCH_ASSOC );
316316
@@ -437,7 +437,7 @@ public function logQueries(bool $logQueries = true) : void
437437 LoggedStatement::CLASS ,
438438 [
439439 function (array $ entry ) : void {
440- /** @var logEntry $entry */
440+ /** @var logEntryType $entry */
441441 $ this ->addLogEntry ($ entry );
442442 },
443443 $ this ->newLogEntry ()
@@ -458,23 +458,23 @@ public function setQueryLogger(callable $queryLogger) : void
458458 /**
459459 * @param string|null $statement
460460 *
461- * @return logEntry
461+ * @return logEntryType
462462 */
463463 protected function newLogEntry (?string $ statement = null ) : array
464464 {
465465 return [
466- 'start ' => microtime (true ),
467- 'finish ' => null ,
468- 'duration ' => null ,
466+ 'start ' => microtime (true ),
467+ 'finish ' => null ,
468+ 'duration ' => null ,
469469 'performed ' => null ,
470470 'statement ' => $ statement ,
471- 'values ' => [],
472- 'trace ' => null ,
471+ 'values ' => [],
472+ 'trace ' => null ,
473473 ];
474474 }
475475
476476 /**
477- * @param logEntry $entry
477+ * @param logEntryType $entry
478478 *
479479 * @return void
480480 */
0 commit comments