src/Application/ConsoleApplication.php
/**
     * Try to read content from the specified file path.
     *
     * @param FilePathInterface $filePath The file path.
     *
     * @return array|null The content or null if failed.
     */
Try to read content from the specified file path.
@param FilePathInterface $filePath The file path.

@return array|null The content or null if failed.
Try to read content from the specified file path . @param FilePathInterface $filePath The file path . @return array|null The content or null if failed .
private function tryReadContent(FilePathInterface $filePath): ?array
    {
        $content = @file($filePath->__toString());
        if ($content === false) {
            self::fail('Could not open file "' . $filePath . '".');
            return null;
        }
        return $content;
    }
private function tryReadContent ( FilePathInterface $ filePath ) : ? array { $ content = @ file ( $ filePath -> __toString ( ) ) ; if ( $ content === false ) { self :: fail ( 'Could not open file "' . $ filePath . '".' ) ; return null ; } return $ content ; }
Try to read content from the specified file path.
Try to read content from the specified file path .
/** @noinspection PhpUsageOfSilenceOperatorInspection */