diff --git a/.env.example b/.env.example index 8d96b93..3cb636c 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ GITHUB_TOKEN= -PHP_VERSION=56|73|74|80 +PHP_VERSION=56|73|74|80|81|82|83 DB_ENGINE= \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf15cb5..883b73f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,11 +12,11 @@ jobs: test: strategy: matrix: - PHP: [56, 73, 74, 80, 81] + PHP: [56, 74, 80, 81, 82, 83] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Prepare code env: diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 0d7bd20..52918dd 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -1,7 +1,7 @@ true, + '@PSR12' => true, 'array_syntax' => ['syntax' => 'short'], 'multiline_whitespace_before_semicolons' => false, 'echo_tag_syntax' => false, @@ -22,10 +22,11 @@ 'ternary_operator_spaces' => true, 'trailing_comma_in_multiline' => true, 'trim_array_spaces' => true, - 'braces' => [ - 'allow_single_line_closure' => true, - 'position_after_functions_and_oop_constructs' => 'same', + 'curly_braces_position' => [ + 'classes_opening_brace' => 'same_line', + 'functions_opening_brace' => 'same_line', ], + 'visibility_required' => ['elements' => ['property', 'method']], ]; $excludes = [ diff --git a/src/Phinx.php b/src/Phinx.php index 08345da..7d02a54 100644 --- a/src/Phinx.php +++ b/src/Phinx.php @@ -33,7 +33,7 @@ private function phinx($seed) { $app->setAutoExit(false); $output = new BufferedOutput(); - + $this->run($app, $output, 'migrate', $config); if($seed) { @@ -41,7 +41,7 @@ private function phinx($seed) { } } - private function run(PhinxApplication $phinx, BufferedOutput $output, $commandName, $config, $environment='production') { + private function run(PhinxApplication $phinx, BufferedOutput $output, $commandName, $config, $environment = 'production') { $arguments = [ 'command' => $commandName, '--environment' => $environment,