Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string uppercase
<?php strtoupper(string $string): string
<?php     public function getForeignKeyReferentialActionSQL($action)

    {

        $upper = strtoupper($action);

        switch ($upper) {

            case 'CASCADE':

            case 'SET NULL':
<?php             $this->initializeKeywords();

        }



        return isset($this->keywords[strtoupper($word)]);

    }
<?php         $engine = 'INNODB';



        if (isset($options['engine'])) {

            $engine = strtoupper(trim($options['engine']));

        }
<?php         $engine = 'INNODB';



        if ($diff->fromTable instanceof Table && $diff->fromTable->hasOption('engine')) {

            $engine = strtoupper(trim($diff->fromTable->getOption('engine')));

        }
<?php     {

        $identifier = new Identifier($name);



        return $identifier->isQuoted() ? $identifier : new Identifier(strtoupper($name));

    }
<?php     public function getForeignKeyReferentialActionSQL($action)

    {

        $action = strtoupper($action);



        switch ($action) {

            case 'RESTRICT': // RESTRICT is not supported, therefore falling back to NO ACTION.
<?php     public function getForeignKeyReferentialActionSQL($action)

    {


        if (strtoupper($action) === 'RESTRICT') {

            return 'NO ACTION';

        }
<?php         $identifier = new Identifier($identifier);



        return strtoupper(dechex(crc32($identifier->getName())));

    }



    protected function getCommentOnTableSQL(string $tableName, ?string $comment): string
<?php                     throw QueryException::nonUniqueAlias($join['joinAlias'], array_keys($knownAliases));

                }



                $sql .= ' ' . strtoupper($join['joinType'])

                    . ' JOIN ' . $join['joinTable'] . ' ' . $join['joinAlias'];

                if ($join['joinCondition'] !== null) {

                    $sql .= ' ON ' . $join['joinCondition'];
<?php             return dechex(crc32($column));

        }, $columnNames));



        return strtoupper(substr($prefix . '_' . $hash, 0, $maxSize));

    }

}
<?php     private function onEvent($event)

    {

        if (isset($this->_options[$event])) {

            $onEvent = strtoupper($this->_options[$event]);



            if ($onEvent !== 'NO ACTION' && $onEvent !== 'RESTRICT') {

                return $onEvent;
<?php     public function getSQLDeclaration(array $column, AbstractPlatform $platform)

    {

        return strtoupper($this->getName());

    }
<?php     public function testGenerateTableWithAutoincrement(): void

    {

        $columnName = strtoupper('id' . uniqid());

        $tableName  = strtoupper('table' . uniqid());

        $table      = new Table($tableName);

        $column     = $table->addColumn($columnName, 'integer');
<?php     public function testGenerateTableWithAutoincrement(): void

    {

        $columnName = strtoupper('id' . uniqid());

        $tableName  = strtoupper('table' . uniqid());

        $table      = new Table($tableName);

        $column     = $table->addColumn($columnName, 'integer');

        $column->setAutoincrement(true);