diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac78fe14c..19b678ea3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,7 +112,7 @@ jobs: run: composer install --no-progress --prefer-dist --optimize-autoloader - name: Code style with PHP-CS-Fixer - run: ./vendor/bin/php-cs-fixer fix --format=checkstyle | cs2pr + run: ./vendor/bin/php-cs-fixer fix --format=checkstyle --diff --dry-run | cs2pr phpcs: runs-on: ubuntu-latest diff --git a/src/PhpSpreadsheet/CellReferenceHelper.php b/src/PhpSpreadsheet/CellReferenceHelper.php index b2f18f6dd..5dc9aa8e0 100644 --- a/src/PhpSpreadsheet/CellReferenceHelper.php +++ b/src/PhpSpreadsheet/CellReferenceHelper.php @@ -24,7 +24,7 @@ class CellReferenceHelper $this->numberOfRows = $numberOfRows; // Get coordinate of $beforeCellAddress - [$beforeColumn, $beforeRow] = Coordinate::coordinateFromString($beforeCellAddress); + [$beforeColumn, $beforeRow] = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::coordinateFromString($beforeCellAddress); $this->beforeColumn = Coordinate::columnIndexFromString($beforeColumn); $this->beforeRow = (int) $beforeRow; }