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

Breadcrumb

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

function NumberFormatException::invalidFormat

1 call to NumberFormatException::invalidFormat()
BigNumber::_of in vendor/brick/math/src/BigNumber.php
@psalm-pure

File

vendor/brick/math/src/Exception/NumberFormatException.php, line 12

Class

NumberFormatException
Exception thrown when attempting to create a number from a string with an invalid format.

Namespace

Brick\Math\Exception

Code

public static function invalidFormat(string $value) : self {
    return new self(\sprintf('The given value "%s" does not represent a valid number.', $value));
}

API Navigation

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