Skip to content

Migration tool replaces any instances of PHPExcel with the filepath #598

@elisimmonds

Description

@elisimmonds

This is:

- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

All variables containing $PHPExcel are kept the same

What is the current behavior?

The substring 'PHPExcel is replaced with the filepath to the framework.

What are the steps to reproduce?

Create a file with a variable (mine is $objPHPExcel) and then run the migration tool.

<?php

require __DIR__ . '/vendor/autoload.php';

// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();

$objPHPExcel // used to be this
$obj\PhpOffice\PhpSpreadsheet\Spreadsheet->setActiveSheetIndex(4); // turns into this.

Which versions of PhpSpreadsheet and PHP are affected?

I am running 1.3

screen shot 2018-07-12 at 1 17 06 pm

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions