You have to pass in true to confirm you really want to do it

@param bool $sure

@return Database
@throws \InvalidArgumentException
@throws DoctrineStaticMetaException
12768
public function drop($sure): Database
    {
        if (true !== $sure) {
            $this->throwUnsure();
        }
        $link = $this->connect();
        $sql  = "DROP DATABASE IF EXISTS `{$this->config->get(ConfigInterface::PARAM_DB_NAME)}`";
        if (true !== mysqli_query($link, $sql)) {
            $mysqlError = mysqli_errno($link) . ': ' . mysqli_error($link);
            throw new DoctrineStaticMetaException(
                'Failed to drop the database '
                . $this->config->get(ConfigInterface::PARAM_DB_NAME)
                . ' Mysql Error - ' . $mysqlError
            );
        }

        return $this;
    }
1213121
public function passive(bool $passive)
    {
        if (!@ftp_pasv($this->ftp, $passive)) {
            throw new Exception(sprintf("Cannot switch to passive = %s", $passive ? "true" : "false"));
        }

        return $this;
    }
642632
public function doConfirm()
    {
        if ($this->isConfirmable()) {
            $this->status = self::STATUS_CONFIRMED;

            $this->save();
        }

        return $this;
    }
1293288
public function init($bare = false)
    {
        $this->clearAll();
        if ($bare) {
            $this->addCommandArgument('--bare');
        }
        $this->addCommandName(self::GIT_INIT);

        return $this->getCommand();
    }
1224295
public function enable($enable = true)
    {
        if (! is_bool($enable)) {
            throw new InvalidArgumentException("enable must be a boolean. [$enable] given.");
        }

        $this->enabled = $enable;

        return $this;
    }
347112
protected function getBoolQuery(Query $query): BoolQuery
    {
        $boolQuery = $query->getQuery();
        if (!$boolQuery instanceof BoolQuery) {
            throw new InvalidArgumentException(sprintf(
                'Localized query expander available only with %s, got: %s',
                BoolQuery::class,
                get_class($boolQuery)
            ));
        }

        return $boolQuery;
    }
493002
static function dbd($bool = true)
	{
		global $php;
		if($bool) $php->db->debug = true;
		else $php->db->debug = false;
	}
258979
public function enableCache($enable = true)
    {
        $this->enableCache = (bool) $enable;

        $this->refreshSettingDependentCriteria();

        return $this;
    }
526828
public function toSqlBoolean(bool $boolean, Provider $provider = null)
    {
        $this->setParameterProvider($provider);

        return $provider->convertToSqlBoolean($boolean);
    }
813859
public function exists($exists = null)
    {
        if (func_num_args()) {
            $this->_exists = $exists;
            return $this;
        }
        if ($this->_exists === null) {
            throw new ORMException("No persitance information is available for this entity use `sync()` to get an accurate existence value.");
        }
        return $this->_exists;
    }
423555
public function when($condition, Closure $trueFunc, Closure $falseFunc = null) {
        if ($condition) {
            $trueFunc($this);
            return $this;
        }
        if (!empty($falseFunc)) {
            $falseFunc($this);
        }
        return $this;
    }
591629
public function createFromNonExistantPath(string $path): File
    {
        $file = new File($path);
        if (true === $file->exists()) {
            throw new DoctrineStaticMetaException('File exists at ' . $path);
        }

        return $file;
    }
1038024
public function update(): Schema
    {
        if ('cli' !== PHP_SAPI) {
            throw new \RuntimeException('This should only be called from the command line');
        }
        $metadata        = $this->getAllMetaData();
        $schemaUpdateSql = $this->schemaTool->getUpdateSchemaSql($metadata);
        if (0 !== count($schemaUpdateSql)) {
            $connection = $this->entityManager->getConnection();
            foreach ($schemaUpdateSql as $sql) {
                try {
                    $connection->executeQuery($sql);
                } catch (DBALException $e) {
                    throw new DoctrineStaticMetaException(
                        "exception running update sql:\n$sql\n",
                        $e->getCode(),
                        $e
                    );
                }
            }
        }
        $this->generateProxies();

        return $this;
    }
192943
public function schemaBuilder(bool $locate = true): SchemaBuilder
    {
        /**
         * @var SchemaBuilder $builder
         */
        $builder = $this->getFactory()->make(SchemaBuilder::class, ['manager' => $this->manager]);

        if ($locate) {
            foreach ($this->locator->locateSchemas() as $schema) {
                $builder->addSchema($schema);
            }

            foreach ($this->locator->locateSources() as $class => $source) {
                $builder->addSource($class, $source);
            }
        }

        return $builder;
    }
192781
protected function checkScope($update = true)
    {
        $request = request();

        if ($update && $request->exists('scope')) {

            $this->activeScope = $request->get('scope');

            $this->markResetActivePage();
            $this->storeActiveScopeInSession();
        } else {
            $this->retrieveActiveScopeFromSession();
        }

        // Check if active is valid, reset it othwerwise
        if ($this->activeScope && ! $this->isValidScopeKey($this->activeScope)) {
            $this->activeScope = null;
            $this->storeActiveScopeInSession();
        }

        return $this;
    }
439613
public function includeInactive($enable = true)
    {
        $this->includeInactive = (bool) $enable;

        $this->refreshSettingDependentCriteria();

        return $this;
    }
1043224
public function setHasFixtures($hasFixtures)
    {
        if (!is_bool($hasFixtures)) {
            throw new \InvalidArgumentException('The attribute hasFixtures on the class Entity has to be boolean (' . gettype($hasFixtures) . ('object' === gettype($hasFixtures) ? ' ' . get_class($hasFixtures) : '') . ' given).');
        }

        $this->hasFixtures = $hasFixtures;

        return $this;
    }