Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem getting a single cell . Error Protected Property #186

Open
franciscocervantes opened this issue Dec 27, 2017 · 2 comments
Open

Problem getting a single cell . Error Protected Property #186

franciscocervantes opened this issue Dec 27, 2017 · 2 comments

Comments

@franciscocervantes
Copy link

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

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
Copy link

husnainafzal86 commented Jan 17, 2018

Me too getting same

@nicolasmahy
Copy link

Hi,

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

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

Grtz Nicolas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants