squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.63k stars 1.48k forks source link

> Where Excel file import in codeigniter, the problem exists for phpexcel 1.8.0 on PHP 7 #3931

Closed HekaalXFG closed 7 months ago

HekaalXFG commented 7 months ago
          > Where Excel file import in codeigniter, the problem exists for phpexcel 1.8.0 on PHP 7

A PHP Error was encountered Severity: 8192

Message: Array and string offset access syntax with curly braces is deprecated

Filename: Shared/String.php

Line Number: 529

Backtrace:

File: /opt/lampp/htdocs/example/application/third_party/PHPExcel/Autoloader.php Line: 82 Function: _error_handler

File: /opt/lampp/htdocs/example/application/third_party/PHPExcel/Autoloader.php Line: 82 Function: require

File: /opt/lampp/htdocs/example/application/third_party/PHPExcel/Autoloader.php Line: 36 Function: spl_autoload_call

File: /opt/lampp/htdocs/example/application/third_party/PHPExcel.php Line: 6 Function: require

File: /opt/lampp/htdocs/example/application/controllers/Flats.php Line: 4 Function: require_once

File: /opt/lampp/htdocs/example/index.php Line: 318 Function: require_once

hi did you find the solution..if yes pls provide me I am unable to export the data in excel format it showing error same of deprecated

_Originally posted by @ravinegi17 in https://github.com/squizlabs/PHP_CodeSniffer/issues/2558#issuecomment-880459844_

jrfnl commented 7 months ago

@HekaalXFG You are reporting this to the wrong repo. Your problem sounds like it is related to the PHPExcel package which was archived in 2019 and for which PHPSpreadsheet is the replacement.

I suggest you upgrade your dependencies and report issues in the correct repo in the future.