protected function isStrictMode($step) { $data = $step->getData(); $connection = new Connection(['driver' => 'pdo_' . $data['db_type'], 'host' => $data['db_host'], 'port' => $data['db_port'], 'database' => $data['db_name'], 'username' => $data['db_user'], 'password' => $data['db_password'], 'charset' => 'utf8']); $connection->connect(); if ($connection->isStrictModeEnabled()) { return true; } return false; }