Skip to content

Commit

Permalink
fix(qa) apply PHP70Migration:risky rule
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Feb 6, 2024
1 parent ca24853 commit 902d9c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/Export/Oracle.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public function getIndexDeclaration($name, array $definition)
if ('unique' == strtolower($definition['type'])) {
$type = strtoupper($definition['type']);
} else {
throw new Doctrine_Export_Exception('Unknown type '.$definition['type'].' for index '.$name);
throw new Doctrine_Export_Exception('Unknown type '.$definition['type']."\u{a0}for index ".$name);
}
} else {
// only unique indexes should be defined in create table statement
Expand Down
2 changes: 1 addition & 1 deletion tests/CliTestCase/cli-default.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Dan Bettles <[email protected]>
*/

require_once dirname(dirname(dirname(__FILE__))).'/lib/Doctrine/Core.php';
require_once dirname(__FILE__, 3).'/lib/Doctrine/Core.php';
spl_autoload_register(['Doctrine_Core', 'autoload']);

require_once dirname(__FILE__).'/TestTask02.php';
Expand Down
2 changes: 1 addition & 1 deletion tests/CliTestCase/cli-with-custom-tasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Dan Bettles <[email protected]>
*/

require_once dirname(dirname(dirname(__FILE__))).'/lib/Doctrine/Core.php';
require_once dirname(__FILE__, 3).'/lib/Doctrine/Core.php';
spl_autoload_register(['Doctrine_Core', 'autoload']);

$cli = new Doctrine_Cli();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Dan Bettles <[email protected]>
*/

require_once dirname(dirname(dirname(__FILE__))).'/lib/Doctrine/Core.php';
require_once dirname(__FILE__, 3).'/lib/Doctrine/Core.php';
spl_autoload_register(['Doctrine_Core', 'autoload']);

require_once dirname(__FILE__).'/TestTask02.php';
Expand Down
2 changes: 1 addition & 1 deletion tests/Export/SchemaTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class Doctrine_Export_Schema_TestCase extends Doctrine_UnitTestCase
public function testYmlExport()
{
$export = new Doctrine_Export_Schema();
$export->exportSchema('schema-export.yml', 'yml', dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'models', $this->tables);
$export->exportSchema('schema-export.yml', 'yml', dirname(__FILE__, 2).DIRECTORY_SEPARATOR.'models', $this->tables);
unlink('schema-export.yml');
}
}

0 comments on commit 902d9c9

Please sign in to comment.