Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Finds whether a variable is a number or a numeric string
<?php is_numeric(mixed $value): bool
<?php     public function getClobTypeDeclarationSQL(array $column)

    {

        if (! empty($column['length']) && is_numeric($column['length'])) {

            $length = $column['length'];



            if ($length <= static::LENGTH_LIMIT_TINYTEXT) {
<?php     public function getBlobTypeDeclarationSQL(array $column)

    {

        if (! empty($column['length']) && is_numeric($column['length'])) {

            $length = $column['length'];



            if ($length <= static::LENGTH_LIMIT_TINYBLOB) {
<?php             return $callback(null);

        }



        if (is_bool($value) || is_numeric($value)) {

            return $callback((bool) $value);

        }
<?php                 break;

        }



        if (! is_numeric($interval)) {

            $interval = "' || " . $interval . " || '";

        }
<?php                     ' ADD' . $this->getDefaultConstraintDeclarationSQL($name, $column);

            }



            if (empty($column['comment']) && ! is_numeric($column['comment'])) {

                continue;

            }
<?php             $comment = $this->getColumnComment($column);



            if (empty($comment) && ! is_numeric($comment)) {

                continue;

            }
<?php             $column     = $columnDiff->column;

            $comment    = $this->getColumnComment($column);

            $hasComment = ! empty($comment) || is_numeric($comment);



            if ($columnDiff->fromColumn instanceof Column) {

                $fromComment    = $this->getColumnComment($columnDiff->fromColumn);
<?php             if ($columnDiff->fromColumn instanceof Column) {

                $fromComment    = $this->getColumnComment($columnDiff->fromColumn);

                $hasFromComment = ! empty($fromComment) || is_numeric($fromComment);



                if ($hasFromComment && $hasComment && $fromComment !== $comment) {

                    $commentsSql[] = $this->getAlterColumnCommentSQL(
<?php     {

        if (is_array($item)) {

            foreach ($item as $key => $value) {

                if (! is_bool($value) && ! is_numeric($value)) {

                    continue;

                }
<?php                 $item[$key] = (int) (bool) $value;

            }

        } elseif (is_bool($item) || is_numeric($item)) {

            $item = (int) (bool) $item;

        }
<?php     public function setPrecision($precision)

    {

        if (! is_numeric($precision)) {

            $precision = 10; // defaults to 10 when no valid precision is given.

        }
<?php     public function setScale($scale)

    {

        if (! is_numeric($scale)) {

            $scale = 0;

        }
<?php         $depth = $input->getOption('depth');



        if (! is_numeric($depth)) {

            throw new LogicException("Option 'depth' must contains an integer value");

        }