Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Platform.php

function Platform::getDevNull

Return value

'NUL'|'/dev/null'

1 call to Platform::getDevNull()
Factory::createComposer in vendor/composer/composer/src/Composer/Factory.php
Creates a Composer instance

File

vendor/composer/composer/src/Composer/Util/Platform.php, line 339

Class

Platform
Platform helper for uniform platform-specific tests.

Namespace

Composer\Util

Code

public static function getDevNull() : string {
    if (self::isWindows()) {
        return 'NUL';
    }
    return '/dev/null';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal