asimlqt / php-google-spreadsheet-client

A PHP library for accessing and manipulating Google Spreadsheets
Other
543 stars 154 forks source link

Problem getting a single cell . Error Protected Property #186

Open franciscocervantes opened 6 years ago

franciscocervantes commented 6 years ago

On the example: _$topLeftCornerCell = $cellFeed->getCell(1, 1); echo $topLeftCornerCell->content; // "lastname"

ERROR: Fatal error: Uncaught Error: Cannot access protected property Google\Spreadsheet\CellEntry::$content in ... Error: Cannot access protected property Google\Spreadsheet\CellEntry::$content

Please Help!!

husnainafzal86 commented 6 years ago

Me too getting same

nicolasmahy commented 6 years ago

Hi,

Instead of: $topLeftCornerCell = $cellFeed->getCell(1, 1); echo $topLeftCornerCell->content;

Try: $topLeftCornerCell = $cellFeed->getCell(1, 1); echo $topLeftCornerCell->getContent();

Grtz Nicolas