src/i18n/PhpMessageSource.php
protected function loadMessagesFromFile($messageFile)
    {
        if (is_file($messageFile)) {
            $messages = include $messageFile;
            if (!\is_array($messages)) {
                $messages = [];
            }

            return $messages;
        }

        return null;
    }
protected function loadMessagesFromFile($messageFile)
    {
        if (is_file($messageFile)) {
            $messages = include $messageFile;
            if (!\is_array($messages)) {
                $messages = [];
            }

            return $messages;
        }

        return null;
    }
protected function loadMessagesFromFile ( $ messageFile ) { if ( is_file ( $ messageFile ) ) { $ messages = include $ messageFile ; if ( ! \ is_array ( $ messages ) ) { $ messages = [ ] ; } return $ messages ; } return null ; }
Loads the message translation for the specified language and category or returns null if file doesn't exist.

@param string $messageFile path to message file
@return array|null array of messages or null if file not found
Loads the message translation for the specified language and category or returns null if file doesn t exist .