Skip to content

Commit 4c70be0

Browse files
authored
Type hint table in-line & variable name
1 parent da03cc4 commit 4c70be0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

en/development/configuration.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,13 @@ class like so::
584584
$isCakeBakeShellRunning = (PHP_SAPI === 'cli' && isset($argv[1]) && $argv[1] === 'bake');
585585
if (!$isCakeBakeShellRunning) {
586586
EventManager::instance()->on('Model.initialize', function($event) {
587+
/** @var \Cake\ORM\Table $subject */
587588
$subject = $event->getSubject();
588589
if (get_class($subject) === 'Cake\ORM\Table') {
589-
$msg = sprintf(
590+
$message = sprintf(
590591
'Missing table class or incorrect alias when registering table class for database table %s.',
591592
$subject->getTable());
592-
throw new InternalErrorException($msg);
593+
throw new InternalErrorException($message);
593594
}
594595
});
595596
}

0 commit comments

Comments
 (0)